Files
kotlin-fork/compiler/testData/codegen/box/jdk/arrayList.kt
T
Mikhail Glukhikh a4c7619c89 [FIR2IR] Introduce & use FirBuiltInsPackageFragment
Without this commit, JVM name mapping logic in BE does not work for FIR,
because FIR cannot use old BuiltInsPackageFragmentImpl descriptor.
In this commit we add our own implementation thus fixing
a pack of FIR black box tests.
2020-03-24 10:37:53 +03:00

14 lines
279 B
Kotlin
Vendored

// 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"
}