mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
9 lines
169 B
Kotlin
Vendored
9 lines
169 B
Kotlin
Vendored
abstract class Base(val fn: () -> String)
|
|
|
|
interface Host {
|
|
companion object : Base({ Host.ok() }) {
|
|
fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = Host.Companion.fn() |