Refined redundant null check optimization

This commit is contained in:
Denis Zharkov
2014-12-31 16:19:21 +03:00
parent 5675d2b26b
commit 6f94ebb9d6
10 changed files with 139 additions and 5 deletions
@@ -1,3 +1,5 @@
class A
fun foo(x: Any?) {}
fun box() {
@@ -8,6 +10,9 @@ fun box() {
z!!
foo(1 as java.lang.Integer)
val y: Any? = if (1 == 1) x else A()
y!!
}
// 0 IFNULL