Files
kotlin-fork/compiler/testData/codegen/box/closures/captureOuterProperty/kt4176.kt
T
2018-06-28 12:26:41 +02:00

19 lines
224 B
Kotlin
Vendored

// IGNORE_BACKEND: 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"
}