JS: move expressions test to box tests
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
class A {
|
||||
operator fun invoke(i: Int) = i
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val result = A()(1)
|
||||
if (result != 1) return "fail: $result"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user