No smart casts to Nothing?

This commit is contained in:
Mikhail Glukhikh
2015-11-06 18:53:32 +03:00
parent 2d9fbf5696
commit b468d5b0c6
5 changed files with 10 additions and 8 deletions
@@ -6,6 +6,6 @@ fun foo(): String {
var t: String? = "y"
if (t == null) t = "x"
var x: Int? = null
if (x == null) <!TYPE_MISMATCH!><!DEBUG_INFO_SMARTCAST!>x<!> += null<!>
if (x == null) <!TYPE_MISMATCH!>x += null<!>
return <!DEBUG_INFO_SMARTCAST!>t<!> + s
}