Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/kt47762.kt
T
Mads Ager 2877f1cabe [JVM_IR] Fix check for inline class property backing in lowering.
The inline class lowering would attempt to lower a companion object
property backing field.

^KT-47762 Fixed.
2021-07-21 01:56:46 +02:00

12 lines
216 B
Kotlin
Vendored

inline class A(val a: Int = 1) {
companion object {
val a: Int = 2
}
}
fun box(): String {
if (A.a != 2) return "FAIL1"
val instance = A()
return if (instance.a != 1) "FAIL2" else "OK"
}