JS backend: add the support function expression

#KT-7242 Fixed
This commit is contained in:
Zalim Bashorov
2015-04-20 19:08:08 +03:00
parent 02071c5bdd
commit 1ef9b9db1f
7 changed files with 83 additions and 8 deletions
@@ -21,9 +21,9 @@ fun box() : String {
val a = [A] fun Int.name() = this + 1 // name
if (1.a() != 2) return "test 8 failed"
val b = ( fun Int.name() = this + 1)
if (1.a() != 2) return "test 9 failed"
if (1.b() != 2) return "test 9 failed"
val c = (@c fun Int.name() = this + 1)
if (1.a() != 2) return "test 10 failed"
if (1.c() != 2) return "test 10 failed"
val d = fun name(): Int { return@name 4}
if (d() != 4) return "test 11 failed"