JVM IR: Don't move inaccessible const fields out of interface companions

This commit is contained in:
Steven Schäfer
2019-08-09 14:07:49 +02:00
committed by max-kammerer
parent 3742425547
commit 0c3c0989b4
5 changed files with 31 additions and 5 deletions
@@ -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