JVM IR: workaround indirect dependency between lowerings

#KT-51353 Fixed
This commit is contained in:
Alexander Udalov
2022-02-18 02:27:03 +01:00
parent 3b3734f0bb
commit e5e5970883
6 changed files with 45 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
// TARGET_BACKEND: JVM
// WITH_STDLIB
// FILE: 1.kt
val referenceFromOtherFile = O.A
// FILE: 2.kt
@JvmInline
value class Z(val value: String)
object O {
val A = Z("OK")
val B = A
}
fun box(): String = O.B.value