15 lines
197 B
Kotlin
Vendored
15 lines
197 B
Kotlin
Vendored
open class SuperClass(val arg: () -> String)
|
|
|
|
object obj {
|
|
|
|
fun foo(): String {
|
|
return "OK"
|
|
}
|
|
|
|
class Foo : SuperClass(::foo)
|
|
}
|
|
|
|
fun box(): String {
|
|
return obj.Foo().arg()
|
|
}
|