JVM_IR KT-48432 fix overflow in const-bound range optimization

This commit is contained in:
Dmitry Petrov
2021-08-27 13:24:17 +03:00
committed by TeamCityServer
parent ce44403d1b
commit c2b575505a
18 changed files with 484 additions and 14 deletions
@@ -0,0 +1,6 @@
fun box(): String {
val x1 = 1.toChar()
if (x1 !in Char.MIN_VALUE..Char.MAX_VALUE)
return "Failed"
return "OK"
}