Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// KT-557 Wrong type inference near sure extension function
|
||||
|
||||
fun <T : Any> T?.sure() : T = this!!
|
||||
|
||||
fun Array<String>.length() : Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user