JS: move expressions test to box tests

This commit is contained in:
Alexey Andreev
2016-08-26 19:32:17 +03:00
parent 2bf0199959
commit b159049be8
314 changed files with 2380 additions and 2185 deletions
+22
View File
@@ -0,0 +1,22 @@
package foo
var c = 0
class A() {
var p = 0;
init {
c++;
}
}
fun box(): String {
++A().p
if (c != 1) {
return "fail1: $c"
}
--A().p
if (c != 2) {
return "fail2: $c"
}
return "OK"
}