Rename: auto cast -> smart cast
This commit is contained in:
@@ -4,7 +4,7 @@ fun test() {
|
||||
val ints = Array<Int?>(2, { null })
|
||||
ints.forEach @lit {
|
||||
if (it == null) <!RETURN_NOT_ALLOWED_EXPLICIT_RETURN_TYPE_REQUIRED!>return @lit<!>
|
||||
use(<!DEBUG_INFO_AUTOCAST!>it<!> + 5)
|
||||
use(<!DEBUG_INFO_SMARTCAST!>it<!> + 5)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ fun test() {
|
||||
val <!UNUSED_VARIABLE!>a<!> = @a{(Int?).() ->
|
||||
if (this != null) {
|
||||
val <!UNUSED_VARIABLE!>b<!> = {String.() ->
|
||||
<!DEBUG_INFO_AUTOCAST!>this@a<!>.times(5) // @a Unresolved
|
||||
<!DEBUG_INFO_SMARTCAST!>this@a<!>.times(5) // @a Unresolved
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user