JS: add test to prove that anonymous function that declares lambda is translated correctly. See KT-11589

This commit is contained in:
Alexey Andreev
2016-12-14 15:53:18 +03:00
parent c82f8213b0
commit 91aeeb20e8
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,7 @@
fun box(): String {
val a = (fun(): String {
val o = { "O" }
return o() + "K"
})
return a()
}