Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// KT-630 Bad type inference
|
||||
|
||||
fun <T : Any> T?.sure() : T = this!!
|
||||
|
||||
val x = "lala".sure()
|
||||
val s : String = x
|
||||
|
||||
Reference in New Issue
Block a user