JS backend: added the support extension functions as expression.

This commit is contained in:
Zalim Bashorov
2014-02-26 14:55:00 +04:00
parent 396afb05cb
commit 14ed970dc3
3 changed files with 30 additions and 12 deletions
@@ -0,0 +1,8 @@
package foo
fun box(): String {
val a = 23.{ Int.(a: Int) -> a * a + this }(3)
if (a != 32) return "a != 32, a = $a";
return "OK";
}