8 lines
165 B
Kotlin
Vendored
8 lines
165 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
fun box () : String {
|
|
val s = ArrayList<String>()
|
|
s.add("foo")
|
|
s[0] += "bar"
|
|
return if(s[0] == "foobar") "OK" else "fail"
|
|
}
|