Files
kotlin-fork/compiler/testData/codegen/box/arrays/kt33.kt
T
2019-11-19 11:00:09 +03:00

9 lines
195 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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"
}