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
@@ -1,3 +1,6 @@
// KT-630 Bad type inference
fun <T : Any> T?.sure() : T = this!!
val x = "lala".sure()
val s : String = x