JS backend: translate labeled for expressions.

#KT-2986 fixed

(cherry picked from commit b0836a6)
This commit is contained in:
develar
2012-10-23 19:08:47 +04:00
committed by Zalim Bashorov
parent 764b5c5a90
commit 67592829b6
11 changed files with 78 additions and 72 deletions
@@ -0,0 +1,14 @@
package foo
val a1 = arrayOfNulls<Int>(0)
fun box(): Boolean {
var bar = 33
@outer for (a in array(1, 2)) {
for (b in array(1, 4)) {
break @outer
}
bar = 42
}
return bar == 33;
}