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,6 +1,6 @@
fun foo(x: Number, y: Int) {
when (x) {
x as Int -> x : Int
x as Int -> <!DEBUG_INFO_AUTOCAST!>x<!> : Int
y -> {}
else -> {}
}
@@ -9,16 +9,16 @@ fun foo(x: Number, y: Int) {
fun bar(x: Number) {
when (x) {
x as Int -> x : Int
x as Int -> <!DEBUG_INFO_AUTOCAST!>x<!> : Int
else -> {}
}
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}
fun whenWithoutSubject(x: Number) {
when {
(x as Int) == 42 -> x : Int
(x as Int) == 42 -> <!DEBUG_INFO_AUTOCAST!>x<!> : Int
else -> {}
}
x : Int
<!DEBUG_INFO_AUTOCAST!>x<!> : Int
}