JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
|
||||
fun box(): String {
|
||||
var result = "fail1"
|
||||
var i = 1
|
||||
loop@ while(i==1)
|
||||
when (i) {
|
||||
1 -> { result = "OK"; break@loop }
|
||||
else -> result = "fail"
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user