19 lines
235 B
Kotlin
Vendored
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"
|
|
}
|