[JS IR] Fix inline functions call graph in IC
Add a dependency for inline function references, because in some cases the references may be inlined. ^KT-55144 Fixed
This commit is contained in:
committed by
Space Team
parent
c31705240a
commit
d8ab9498ab
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
inline fun bar() = "0"
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
inline fun bar() = "1"
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
inline fun bar() = "2"
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
inline fun foo(callableReference: () -> String = ::bar): String {
|
||||
return callableReference()
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
inline fun foo(): String {
|
||||
val callableReference: () -> String = ::bar
|
||||
return (callableReference().toInt() + 1).toString()
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
STEP 0:
|
||||
modifications:
|
||||
U : l1.0.kt -> l1.kt
|
||||
U : l2.0.kt -> l2.kt
|
||||
added file: l1.kt, l2.kt
|
||||
STEP 1:
|
||||
modifications:
|
||||
U : l1.1.kt -> l1.kt
|
||||
modified ir: l1.kt
|
||||
updated imports: l2.kt
|
||||
STEP 2:
|
||||
modifications:
|
||||
U : l2.2.kt -> l2.kt
|
||||
modified ir: l2.kt
|
||||
STEP 3:
|
||||
modifications:
|
||||
U : l1.3.kt -> l1.kt
|
||||
modified ir: l1.kt
|
||||
updated imports: l2.kt
|
||||
Reference in New Issue
Block a user