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

20 lines
265 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Base {
fun doSomething() {
}
}
class X(val action: () -> Unit) { }
class Foo : Base() {
inner class Bar() {
val x = X({ doSomething() })
}
}
fun box() : String {
Foo().Bar()
return "OK"
}