JS backend : added test for local extension function.

This commit is contained in:
Zalim Bashorov
2014-02-26 15:59:27 +04:00
parent 14ed970dc3
commit ec71a90394
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,9 @@
package foo
fun box(): String {
fun String.test(i: Int) = this + i + "OK"
val a = "foo".test(32)
if (a != "foo32OK") return "$a"
return "OK"
}