PSI2IR KT-49203 INVISIBLE_FAKE setter is non-referenceable
This commit is contained in:
committed by
teamcityserver
parent
990afcc06f
commit
6f33259bc3
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user