Files
kotlin/compiler/testData/codegen/bytecodeText/ranges/inCollectionIndices.kt
2020-02-20 14:20:21 +03:00

11 lines
259 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TODO KT-36829 Optimize 'in' expressions in JVM_IR
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