Add tests for intrinsified in/!in and mismatching range types
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
fun testCharSequence(i: Int, cs: CharSequence) = i in cs.indices
|
||||
|
||||
fun testLongWithCharSequence(i: Long, cs: CharSequence) = i in cs.indices
|
||||
|
||||
// 0 INVOKESTATIC kotlin/text/StringsKt.getIndices
|
||||
// 0 INVOKEVIRTUAL kotlin/ranges/IntRange.contains
|
||||
// 1 INVOKEINTERFACE java/lang/CharSequence.length
|
||||
// 2 INVOKEINTERFACE java/lang/CharSequence.length
|
||||
// 2 I2L
|
||||
|
||||
|
||||
Reference in New Issue
Block a user