File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
src/test/kotlin/cases/companions Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -157,3 +157,25 @@ class FilteredNamedCompanionObjectHolder private constructor() {
157
157
val F : Int = 42
158
158
}
159
159
}
160
+
161
+ class FilteredCompanionProperties private constructor() {
162
+ companion object {
163
+ public val F1 : Int = 1
164
+ public const val F2 : Int = 2
165
+ private val F3 : Int = 3
166
+ private const val F4 : Int = 4
167
+ @PrivateApi
168
+ val F5 : Int = 5
169
+ @PrivateApi
170
+ const val F6 : Int = 6
171
+ }
172
+ }
173
+
174
+ class FilteredCompanionFunctions private constructor() {
175
+ companion object {
176
+ public fun f1 (): Int = 1
177
+ private fun f2 (): Int = 2
178
+ @PrivateApi
179
+ public fun f3 (): Int = 3
180
+ }
181
+ }
Original file line number Diff line number Diff line change
1
+ public final class cases/companions/FilteredCompanionFunctions {
2
+ public static final field Companion Lcases/companions/FilteredCompanionFunctions$Companion;
3
+ }
4
+
5
+ public final class cases/companions/FilteredCompanionFunctions$Companion {
6
+ public final fun f1 ()I
7
+ }
8
+
1
9
public final class cases/companions/FilteredCompanionObjectHolder {
2
10
}
3
11
12
+ public final class cases/companions/FilteredCompanionProperties {
13
+ public static final field Companion Lcases/companions/FilteredCompanionProperties$Companion;
14
+ public static final field F2 I
15
+ }
16
+
17
+ public final class cases/companions/FilteredCompanionProperties$Companion {
18
+ public final fun getF1 ()I
19
+ }
20
+
4
21
public final class cases/companions/FilteredNamedCompanionObjectHolder {
5
22
}
6
23
You can’t perform that action at this time.
0 commit comments