Replaced sure() invocations with '!!' operator in diagnostic tests.

This commit is contained in:
Evgeny Gerashchenko
2012-09-14 17:22:34 +04:00
parent 6e62212727
commit 5de734c9f3
5 changed files with 7 additions and 7 deletions
@@ -14,7 +14,7 @@ fun <T : Any> T?.iterator() = object {
fun next() : T {
if (hasNext) {
hasNext = false
return this@iterator.sure()
return this@iterator!!
}
throw java.util.NoSuchElementException()
}