JVM IR: Don't move inaccessible const fields out of interface companions
This commit is contained in:
committed by
max-kammerer
parent
3742425547
commit
0c3c0989b4
@@ -0,0 +1,13 @@
|
||||
interface Test {
|
||||
companion object {
|
||||
private const val prop: Int = 0
|
||||
}
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: property
|
||||
// TESTED_OBJECTS: Test, prop
|
||||
// ABSENT: TRUE
|
||||
|
||||
// TESTED_OBJECT_KIND: property
|
||||
// TESTED_OBJECTS: Test$Companion, prop
|
||||
// FLAGS: ACC_PRIVATE, ACC_FINAL, ACC_STATIC
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
interface Test {
|
||||
companion object {
|
||||
protected const val prop: Int = 0
|
||||
|
||||
Reference in New Issue
Block a user