KT-531 Support nullable iterator in for()

This commit is contained in:
Alex Tkachman
2011-11-18 21:12:25 +02:00
parent 50edc9750b
commit 39ca8eded8
5 changed files with 61 additions and 12 deletions

View File

@@ -10,5 +10,10 @@ fun box() : String {
}
if(sum != 10) return "a failed"
val b : IntArray? = null
for (el in b) {
sum = sum + el
}
return "OK"
}