JS: move more test to box tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
class Test() {
|
||||
var a: Int = 5
|
||||
set(b: Int) {
|
||||
field = 3
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var test = Test()
|
||||
test.a = 5
|
||||
return if (test.a == 3) "OK" else "fail: ${test.a}"
|
||||
}
|
||||
Reference in New Issue
Block a user