KT-3118 NoSuchFieldError on private property without backing field &&
KT-3551 Wrong synthetic accessor implementation
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
val a : String = "1"
|
||||
private val b : String get() = a
|
||||
|
||||
fun outer() : Int {
|
||||
return b.length
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = if (Test().outer() == 1) "OK" else "fail"
|
||||
Reference in New Issue
Block a user