mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
15 lines
309 B
Kotlin
Vendored
15 lines
309 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
|
|
fun box(): String {
|
|
val a = ArrayList<Int>()
|
|
a.add(74)
|
|
a.add(75)
|
|
val i: Int = a.get(0)
|
|
val j: Int = a.get(1)
|
|
if (i != 74) return "fail 1"
|
|
if (j != 75) return "fail 2"
|
|
if (a.size != 2) return "epic fail"
|
|
return "OK"
|
|
}
|