For-loop over long range test

This commit is contained in:
Andrey Breslav
2012-08-30 20:36:28 +04:00
parent bf892870e1
commit 2a1307e040
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,8 @@
fun box(): String {
val r = 1.toLong()..2
var s = ""
for (l in r) {
s += l
}
return if (s == "12") "OK" else "fail: $s"
}