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

11 lines
189 B
Kotlin
Vendored

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