JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 14:59:26 +03:00
parent 7e2d5b04de
commit 3801052460
112 changed files with 760 additions and 676 deletions
+22
View File
@@ -0,0 +1,22 @@
package foo
class A() {
var c = 3
}
fun box(): String {
var a1: A? = A()
var a2: A? = null
a1?.c = 4
a2?.c = 5
if (a1?.c != 4) {
return "fail1"
}
a2 = a1
a2?.c = 5
if (a2?.c != 5) return "fail2"
if (a1?.c != 5) return "fail3"
return "OK"
}