IrInterpreter: interpret IrGetField properly

This commit is contained in:
Mikhail Glukhikh
2021-01-25 15:58:09 +03:00
parent b311e95487
commit 76c2288e21
7 changed files with 51 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// MODULE: lib
// FILE: A.kt
object Obj {
const val A_CONST = "O"
}
// MODULE: main(lib)
// FILE: B.kt
fun box(): String {
val s = B_CONST
return s + "K";
}
const val B_CONST = Obj.A_CONST