FIR2IR: Fix IAE for case of local override of a method with defaults
It was happening because for MyClass.foo we didn't set overriddenSymbols properly because in ClassMemberGenerator.convertFunctionContent we used incorrect containingFirClass that was pointing to anonymous class instead of MyClass. ^KT-58902 Fixed
This commit is contained in:
committed by
Space Team
parent
b04848d179
commit
c474c54903
Generated
+20
@@ -12183,6 +12183,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
|
||||
@@ -12193,6 +12203,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/nestedClassTypeParameterDeserialization.kt");
|
||||
|
||||
Reference in New Issue
Block a user