Files
kotlin-fork/compiler/testData/codegen/box/closures/captureOuterProperty/kt4176.kt
T
2018-08-09 14:22:46 +03:00

18 lines
198 B
Kotlin
Vendored

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"
}