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:21:51 +04:00
parent 5de734c9f3
commit 09502433be
9 changed files with 22 additions and 4 deletions
@@ -6,4 +6,6 @@ fun foo1() {
<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>fooT22<!>()
}
val n : Nothing = null.sure()
val n : Nothing = null!!
fun <T : Any> T?.sure() : T = this!!