If at least one of the range bounds is "pure", order doesn't matter
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(a: Long) = a in 1L .. 10L
|
||||
|
||||
// One DUP2_X2 generated for 'in' operator,
|
||||
// no DUP2_X2 generated for range on stack.
|
||||
// 1 DUP2_X2
|
||||
Reference in New Issue
Block a user