JVM: KT-40664 disable optimization for 'ULong in range of UInt' case

This commit is contained in:
Dmitry Petrov
2020-07-29 15:22:21 +03:00
parent f2493d0950
commit dae358c792
11 changed files with 66 additions and 17 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
fun testIn(x: ULong) =
x in UInt.MIN_VALUE..UInt.MAX_VALUE
fun box(): String =
if (testIn(UInt.MAX_VALUE.toULong() + 1UL))
"Failed"
else
"OK"