If at least one of the range bounds is "pure", order doesn't matter

This commit is contained in:
Dmitry Petrov
2017-07-07 13:07:29 +03:00
parent 22e12dc139
commit ad80c3cd7f
3 changed files with 22 additions and 3 deletions
@@ -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