mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
202 B
Kotlin
Vendored
10 lines
202 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
abstract class Base(val fn: () -> String)
|
|
|
|
interface Host {
|
|
companion object : Base(run { { Host.ok() } }) {
|
|
fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = Host.Companion.fn() |