JS: move more test to box tests
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package foo
|
||||
|
||||
class A() {
|
||||
|
||||
var message = ""
|
||||
operator fun plusAssign(other: A) {
|
||||
message = message + "!"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var c = A()
|
||||
c += A()
|
||||
c += A()
|
||||
return if (c.message == "!!") return "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user