[JS IR] IC: Propagate dependencies from nested declaration to parent
JsIrLinker can't load nested declarations, therefore it is required to load their parent. This patch adds a dependency in the incremental cache graph between nested declaration user and nested declaration parent. ^KT-53931 Fixed ^KT-54120 Fixed
This commit is contained in:
committed by
Space
parent
bd085fbf43
commit
252dc01dd5
+5
@@ -0,0 +1,5 @@
|
||||
fun test(x: Int): Int {
|
||||
val y = MyClass1.companionMethod(x)
|
||||
return y.countTrailingZeroBits()
|
||||
}
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun test(x: Int): Int {
|
||||
val y = MyClass1.companionMethod(x)
|
||||
return y
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fun box(stepId: Int): String {
|
||||
val x = test(stepId)
|
||||
when (stepId) {
|
||||
0 -> if (x != 5) return "Fail, x == $x"
|
||||
1 -> if (x != 32) return "Fail, x == $x"
|
||||
2 -> if (x != 0) return "Fail, x == $x"
|
||||
3 -> if (x != 0) return "Fail, x == $x"
|
||||
else -> return "Unkown"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
STEP 0:
|
||||
dependencies: lib1
|
||||
modifications:
|
||||
U : f.0.kt -> f.kt
|
||||
added file: m.kt, f.kt
|
||||
STEP 1..2:
|
||||
dependencies: lib1
|
||||
STEP 3:
|
||||
dependencies: lib1
|
||||
modifications:
|
||||
U : f.3.kt -> f.kt
|
||||
modified ir: f.kt
|
||||
Reference in New Issue
Block a user