Files
kotlin/compiler/testData/codegen/bytecodeText/ranges/inCollectionIndices.kt
Dmitry Petrov aa7db727ba Fold I2L with ICONST_n when beneficial
ICONST_0; I2L -> LCONST_0
ICONST_1; I2L -> LCONST_1
2017-07-10 10:51:26 +03:00

11 lines
197 B
Kotlin
Vendored

// WITH_RUNTIME
fun testCollection(i: Int, xs: List<Any>) = i in xs.indices
fun testLongWithCollection(i: Long, xs: List<Any>) = i in xs.indices
// 0 getIndices
// 0 contains
// 2 size
// 1 I2L