JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package foo
|
||||
|
||||
class A() {
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var a = 0
|
||||
when(A()) {
|
||||
is A -> a++;
|
||||
is A -> a++;
|
||||
else -> a++;
|
||||
}
|
||||
if (a != 1) return "fail: $a"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user