mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
15 lines
431 B
Kotlin
Vendored
15 lines
431 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun testPrimitiveArray(i: Int, ints: IntArray) = i in ints.indices
|
|
|
|
fun testObjectArray(i: Int, xs: Array<Any>) = i in xs.indices
|
|
|
|
fun testLongWithPrimitiveArray(i: Long, ints: IntArray) = i in ints.indices
|
|
|
|
fun testLongWithObjectArray(i: Long, xs: Array<Any>) = i in xs.indices
|
|
|
|
// 0 INVOKESTATIC kotlin/collections/ArraysKt.getIndices
|
|
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
|
|
// 4 I2L
|
|
// 4 ARRAYLENGTH
|