Rename: auto cast -> smart cast
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//KT-600 Problem with 'sure' extension function type inference
|
||||
|
||||
fun <T : Any> T?._sure() : T { if (this != null) return <!DEBUG_INFO_AUTOCAST!>this<!> else throw NullPointerException() }
|
||||
fun <T : Any> T?._sure() : T { if (this != null) return <!DEBUG_INFO_SMARTCAST!>this<!> else throw NullPointerException() }
|
||||
|
||||
fun test() {
|
||||
val i : Int? = 10
|
||||
|
||||
Reference in New Issue
Block a user