[IR] Extend test coverage for smart cast handling.

This commit is contained in:
Mads Ager
2021-01-07 13:56:02 +01:00
committed by Dmitry Petrov
parent 6fc0de39c2
commit dfc86feecd
28 changed files with 732 additions and 18 deletions
@@ -0,0 +1,8 @@
fun test(x: Any?, y: Double) =
x is Int && x < y
fun box(): String =
if (!test(0, -0.0))
"OK"
else
"Failed"