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,24 +1,24 @@
fun ifThen(x: Int?) {
if (x!! == 0) {
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
fun ifElse(x: Int?) {
if (x!! == 0) else {
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
fun ifThenElse(x: Int?) {
if (x!! == 0) {
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
} else {
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
fun ifIs(x: Int?, cond: Boolean) {