Files
kotlin-fork/compiler/testData/codegen/box/closures/kt4106.kt
T
2019-11-19 11:00:09 +03:00

16 lines
231 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Foo(private val s: String) {
inner class Inner {
private val x = {
this@Foo.s
}()
}
val f = Inner()
}
fun box(): String {
Foo("!")
return "OK"
}