KT-1076 reversed ranges

This commit is contained in:
Alex Tkachman
2012-01-18 20:01:18 +01:00
parent 1a6f018454
commit 86a33f8b16
4 changed files with 64 additions and 17 deletions
@@ -0,0 +1,11 @@
fun box() : String {
var cnt = 0
for (len in 4 downto 1) {
cnt++
}
for (n in -(1..5))
cnt++
return if(cnt == 9) "OK" else cnt.toString()
}