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

19 lines
228 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Z(val s: Int) {
open fun a() {}
}
class B(val x: Int) {
fun foo() {
class X : Z(x) {
}
X()
}
}
fun box(): String {
B(1).foo()
return "OK"
}