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
@@ -5,15 +5,15 @@ class C(val i: Int?) {}
class A(val c: C) {
fun test1() {
if (this@A.c.i != null) {
useInt(this.c.i)
useInt(c.i)
useInt(<!DEBUG_INFO_AUTOCAST!>this.c.i<!>)
useInt(<!DEBUG_INFO_AUTOCAST!>c.i<!>)
}
}
inner class B {
fun test2() {
if (c.i != null) {
useInt(this@A.c.i)
useInt(<!DEBUG_INFO_AUTOCAST!>this@A.c.i<!>)
}
}
}
@@ -21,15 +21,15 @@ class A(val c: C) {
fun A.foo() {
if (this@foo.c.i != null) {
useInt(this.c.i)
useInt(c.i)
useInt(<!DEBUG_INFO_AUTOCAST!>this.c.i<!>)
useInt(<!DEBUG_INFO_AUTOCAST!>c.i<!>)
}
}
fun test3() {
useFunction {
if(c.i != null) {
useInt(this.c.i)
useInt(<!DEBUG_INFO_AUTOCAST!>this.c.i<!>)
}
}
}