7 lines
164 B
Kotlin
Vendored
7 lines
164 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
fun StringBuilder.first() = this.get(0)
|
|
|
|
fun foo() = StringBuilder("foo").first()
|
|
|
|
fun box() = if (foo() == 'f') "OK" else "Fail ${foo()}"
|