Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/kt4174.kt
T

10 lines
164 B
Kotlin
Vendored

open class C(val f: () -> String)
class B(val x: String) {
fun foo(): C {
class A : C({x}) {}
return A()
}
}
fun box() = B("OK").foo().f()