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