JS: fix translation of local function in lambdas

This commit is contained in:
Alexey Andreev
2016-11-24 16:22:52 +03:00
parent 8ef72935a8
commit 9c9b23a0fb
4 changed files with 51 additions and 16 deletions
@@ -0,0 +1,18 @@
// MODULE: lib
// FILE: lib.kt
package lib
fun String.bar() = this
// MODULE: main(lib)
// FILE: main.kt
package foo
import lib.*
object O
fun box(): String = {
fun O.bar() = "O"
O.bar() + "K".bar()
}()