JS BE: expose imported modules via $$importsForInline$$ property
... and use it as prefix to FQN in inline functions. This allows to properly inline function declared in module A to module B, when this function calls another function in module C. See KT-18201
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// EXPECTED_REACHABLE_NODES: 489
|
||||
// MODULE: 1
|
||||
// FILE: lib1.kt
|
||||
|
||||
fun foo() = "OK"
|
||||
|
||||
// MODULE: 2(1)
|
||||
// FILE: lib2.kt
|
||||
|
||||
inline fun bar() = foo()
|
||||
|
||||
// MODULE: main(2)
|
||||
// FILE: main.kt
|
||||
|
||||
fun box() = bar()
|
||||
Reference in New Issue
Block a user