[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.
This commit is contained in:
committed by
Alexander Udalov
parent
46d2e52543
commit
2877f1cabe
@@ -0,0 +1,11 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user