Supported invoke on expressions on js backend

This commit is contained in:
Svetlana Isakova
2014-03-14 17:00:38 +04:00
parent f9ebf217a4
commit f311da3f8f
9 changed files with 147 additions and 40 deletions
@@ -0,0 +1,10 @@
package foo
fun box(): Boolean {
val v1 = 1.{ Int.(x: Int) -> this + x }(2)
val f = { Int.(x: Int) -> this + x }
val v2 = 1.(f)(2)
return v1 == 3 && v2 == 3
}