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