JS backend: added the support extension functions as expression.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user