mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
11 lines
200 B
Kotlin
Vendored
11 lines
200 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND: JS_IR
|
|
class Test {
|
|
companion object {
|
|
fun ok() = "OK"
|
|
val x = run { Test.ok() }
|
|
fun test() = x
|
|
}
|
|
}
|
|
|
|
fun box() = Test.test() |