JVM: KT-40664 disable optimization for 'ULong in range of UInt' case
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user