Rename: auto cast -> smart cast

This commit is contained in:
Svetlana Isakova
2014-09-29 23:09:05 +04:00
parent 20f3403c80
commit ce01c61811
294 changed files with 840 additions and 842 deletions
@@ -3,15 +3,15 @@ package foo
class A(val i: Int?) {
fun test1() {
if (this@A.i != null) {
useInt(<!DEBUG_INFO_AUTOCAST!>this.i<!>)
useInt(<!DEBUG_INFO_AUTOCAST!>i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>this.i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>i<!>)
}
}
inner class B {
fun test2() {
if (i != null) {
useInt(<!DEBUG_INFO_AUTOCAST!>this@A.i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>this@A.i<!>)
}
}
}
@@ -19,15 +19,15 @@ class A(val i: Int?) {
fun A.foo() {
if (this@foo.i != null) {
useInt(<!DEBUG_INFO_AUTOCAST!>this.i<!>)
useInt(<!DEBUG_INFO_AUTOCAST!>i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>this.i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>i<!>)
}
}
fun test3() {
useFunction {
if(i != null) {
useInt(<!DEBUG_INFO_AUTOCAST!>this.i<!>)
useInt(<!DEBUG_INFO_SMARTCAST!>this.i<!>)
}
}
}