FIR2IR: don't generate IR getter for const library properties

This commit is contained in:
Mikhail Glukhikh
2021-01-25 10:55:14 +03:00
parent e2521718dd
commit b311e95487
6 changed files with 42 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// MODULE: lib
// FILE: A.kt
class IrBuiltIns {
object OperatorNames {
const val LESS = "OK"
}
}
// MODULE: main(lib)
// FILE: B.kt
fun foo(s: String) = s
fun box(): String {
return foo(IrBuiltIns.OperatorNames.LESS)
}