18 lines
296 B
Kotlin
Vendored
18 lines
296 B
Kotlin
Vendored
// DONT_TARGET_EXACT_BACKEND: WASM
|
|
// WASM_MUTE_REASON: STDLIB_TEXT
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
class Host {
|
|
val ok = "OK"
|
|
|
|
fun foo() = run { bar(ok) }
|
|
|
|
companion object {
|
|
val ok = 0
|
|
|
|
fun bar(s: String) = s.substring(ok)
|
|
}
|
|
}
|
|
|
|
fun box() = Host().foo() |