JS: decomposition of invocation/"new"

This commit is contained in:
Alexey Tsvetkov
2015-04-10 18:04:00 +03:00
parent b7e26c3bf7
commit 92942fd1c5
8 changed files with 190 additions and 0 deletions
@@ -0,0 +1,13 @@
package foo
fun multiplyFun(): (Int, Int)->Int {
log("multiplyFun()")
return { x, y -> x * y }
}
fun box(): String {
assertEquals(6, multiplyFun()(fizz(2), buzz(3)))
assertEquals("multiplyFun();fizz(2);buzz(3);", pullLog())
return "OK"
}