Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Jun 28, 2024
1 parent 5f1d384 commit 7764ffb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/kotlin/cases/companions/companions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,25 @@ class FilteredNamedCompanionObjectHolder private constructor() {
val F: Int = 42
}
}

class FilteredCompanionProperties private constructor() {
companion object {
public val F1: Int = 42
public const val F2: Int = 43
private val F3: Int = 44
private const val F4: Int = 44
@PrivateApi
val F5: Int = 45
@PrivateApi
const val F6: Int = 46
}
}

class FilteredCompanionFunctions private constructor() {
companion object {
public fun f1(): Int = 42
private fun f2(): Int = 43
@PrivateApi
public fun f3(): Int = 44
}
}
17 changes: 17 additions & 0 deletions src/test/kotlin/cases/companions/companions.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
public final class cases/companions/FilteredCompanionFunctions {
public static final field Companion Lcases/companions/FilteredCompanionFunctions$Companion;
}

public final class cases/companions/FilteredCompanionFunctions$Companion {
public final fun f1 ()I
}

public final class cases/companions/FilteredCompanionObjectHolder {
}

public final class cases/companions/FilteredCompanionProperties {
public static final field Companion Lcases/companions/FilteredCompanionProperties$Companion;
public static final field F2 I
}

public final class cases/companions/FilteredCompanionProperties$Companion {
public final fun getF1 ()I
}

public final class cases/companions/FilteredNamedCompanionObjectHolder {
}

Expand Down

0 comments on commit 7764ffb

Please sign in to comment.