++Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.

This commit is contained in:
Evgeny Gerashchenko
2012-09-17 17:54:26 +04:00
parent 8f337cbd7c
commit 311325883e
@@ -6,6 +6,6 @@ fun foo1() {
<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>fooT22<!>()
}
val n : Nothing = null!!
val n : Nothing = null.sure()
fun <T : Any> T?.sure() : T = this!!