[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:
Mads Ager
2021-07-19 12:50:08 +02:00
committed by Alexander Udalov
parent 46d2e52543
commit 2877f1cabe
10 changed files with 58 additions and 1 deletions
+11
View File
@@ -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"
}