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

11 lines
194 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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()