PSI2IR KT-49203 INVISIBLE_FAKE setter is non-referenceable

This commit is contained in:
Dmitry Petrov
2021-10-13 13:07:53 +03:00
committed by teamcityserver
parent 990afcc06f
commit 6f33259bc3
17 changed files with 482 additions and 4 deletions
@@ -0,0 +1,25 @@
class X {
var value = ""
operator fun plusAssign(data: String) {
value += data
}
}
abstract class A {
lateinit var x: X
private set
fun init() {
x = X()
}
}
class B : A()
fun box(): String {
val a = B()
a.init()
a.x += "OK"
return a.x.value
}
+20
View File
@@ -0,0 +1,20 @@
class X {
var value = ""
operator fun plusAssign(data: String) {
value += data
}
}
abstract class A {
var x: X = X()
private set
}
class B : A()
fun box(): String {
val a = B()
a.x += "OK"
return a.x.value
}