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

11 lines
190 B
Kotlin
Vendored

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