JS: fix complex nested cross-module inlining (KT-26117 fixed)

This commit is contained in:
Anton Bannykh
2018-08-20 21:11:26 +03:00
parent 16a27d593c
commit 04b04f919d
4 changed files with 39 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
// EXPECTED_REACHABLE_NODES: 1529
// IGNORE_BACKEND: JS_IR
// TODO remove stdlib dependency
class A(val list: List<String>) {
init {
run {
list.map { it }
}
}
fun foo() = list.map { it }
}
fun box() = A(listOf("OK")).foo().first()