JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 13:59:50 +03:00
parent 9bf124af3f
commit 7e2d5b04de
68 changed files with 607 additions and 578 deletions
+16
View File
@@ -0,0 +1,16 @@
package foo
class A {
var a: Int = 0
get() = field + 1
set(arg) {
field = arg
}
}
fun box(): String {
val a = A()
a.a = 1
if (a.a != 2) return "A().a != 2, it: ${a.a}"
return "OK"
}