c325dfffd9
KT-4106: VerifyError: Can't access outer this in a lambda in inner class' constructor KT-3152: VerifyError when accessing from a function of object to a field of outer outer class #KT-3523 Fixed #KT-4106 Fixed #KT-3152 Fixed
15 lines
209 B
Kotlin
15 lines
209 B
Kotlin
class Foo(private val s: String) {
|
|
private inner class Inner {
|
|
private val x = {
|
|
this@Foo.s
|
|
}()
|
|
}
|
|
|
|
val f = Inner()
|
|
|
|
}
|
|
|
|
fun box(): String {
|
|
Foo("!")
|
|
return "OK"
|
|
} |