Files
kotlin-fork/compiler/testData/codegen/bytecodeText/ranges/inCharSequenceIndices.kt
T
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

12 lines
210 B
Kotlin
Vendored

// WITH_RUNTIME
fun testCharSequence(i: Int, cs: CharSequence) = i in cs.indices
fun testLongWithCharSequence(i: Long, cs: CharSequence) = i in cs.indices
// 0 getIndices
// 0 contains
// 2 length
// 1 I2L