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

11 lines
169 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Foo(val x: () -> String)
class Outer {
val s = "OK"
inner class Inner : Foo({ s })
}
fun box() = Outer().Inner().x()