Files
kotlin-fork/compiler/testData/codegen/box/closures/kt3523.kt
T

19 lines
235 B
Kotlin
Vendored

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"
}