Generate synthetic functions for local functions with default values, by
re-ordering the lowering phases. The changes in InterfaceLowering are necessary so that IrElements that target the removed functions are re-targeted to the new functions in DefaultImpls. This affects local functions in interface functions since now LocalDeclarationsLowering comes before InterfaceLowering.
This commit is contained in:
committed by
max-kammerer
parent
d2f1852c5e
commit
1abdf0561a
Generated
+5
@@ -9019,6 +9019,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3978_2.kt")
|
||||
public void testKt3978_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4119.kt")
|
||||
public void testKt4119() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119.kt");
|
||||
|
||||
+5
@@ -10104,6 +10104,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3978_2.kt")
|
||||
public void testKt3978_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt3978_2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4119.kt")
|
||||
public void testKt4119() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/functions/localFunctions/kt4119.kt");
|
||||
|
||||
Reference in New Issue
Block a user