JS: move expressions test to box tests
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
fun f(a: (Int) -> Int) = a(1)
|
||||
|
||||
fun box(): String {
|
||||
|
||||
if (f() {
|
||||
it + 2
|
||||
} != 3) return "fail1"
|
||||
|
||||
if (f() { a: Int -> a * 300 } != 300) return "fail2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user