added info about smart casts to diagnostic tests

This commit is contained in:
Svetlana Isakova
2013-12-06 20:12:41 +04:00
parent 00da5fe1fb
commit c30259dfbe
116 changed files with 383 additions and 348 deletions
@@ -1,13 +1,13 @@
fun f1(s: String?) {
if (s!! == "");
s : String
<!DEBUG_INFO_AUTOCAST!>s<!> : String
}
fun f2(s: Number?) {
if (s is Int);
<!TYPE_MISMATCH!>s<!> : Int
if (s as Int == 42);
s : Int
<!DEBUG_INFO_AUTOCAST!>s<!> : Int
}
fun f3(s: Number?) {