Smart casts to nothing after comparison with null

This commit is contained in:
Mikhail Glukhikh
2015-11-05 17:01:28 +03:00
committed by Mikhail Glukhikh
parent 981d471ebe
commit b556037915
7 changed files with 26 additions and 11 deletions
@@ -22,8 +22,8 @@ fun main(args : Array<String>) {
foo(<!DEBUG_INFO_SMARTCAST!>x<!>)
} else {
foo(<!TYPE_MISMATCH!>x<!>)
foo(x!!)
foo(<!DEBUG_INFO_SMARTCAST!>x<!>)
<!UNREACHABLE_CODE!>foo(<!><!DEBUG_INFO_SMARTCAST!>x<!>!!<!UNREACHABLE_CODE!>)<!>
<!UNREACHABLE_CODE!>foo(<!DEBUG_INFO_SMARTCAST!>x<!>)<!>
}
foo(<!DEBUG_INFO_SMARTCAST!>x<!>)