Tests for when / break / continue fixed

This commit is contained in:
Mikhail Glukhikh
2015-04-06 16:04:59 +03:00
parent 412ab8f8b8
commit cdc2d0f542
2 changed files with 4 additions and 4 deletions
@@ -4,9 +4,9 @@ package foo
fun box(): Boolean {
var result = false
var i = 1
while(i==1)
@loop while(i==1)
when (i) {
1 -> { result = true; break }
1 -> { result = true; break@loop }
else -> result = false
}
return result;