[FIR] Don't traverse expect hierarchy to check DefaultArgumentsInExpectActualizedByFakeOverride

^KT-63860 Fixed
Review: https://jetbrains.team/p/kt/reviews/13334/timeline

The previous code was nonsense (I wrote it). It doesn't make sense to
subtract actualOverriddenDeclarations from expectOverriddenDeclarations.
Default parameters are mentioned on the expect side. So default params
in expect/actual supertypes won't be subtracted from
expectOverriddenDeclarations (but should be)
This commit is contained in:
Nikita Bobko
2023-12-01 16:21:01 +01:00
committed by Space Team
parent d0f87f9aba
commit 1aeefe6c33
8 changed files with 121 additions and 8 deletions
@@ -24066,6 +24066,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/multiplatform/kt60902.kt");
}
@Test
@TestMetadata("kt63860.kt")
public void testKt63860() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/kt63860.kt");
}
@Test
@TestMetadata("kt63860_2.kt")
public void testKt63860_2() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/kt63860_2.kt");
}
@Test
@TestMetadata("manyImplMemberNotImplemented.kt")
public void testManyImplMemberNotImplemented() throws Exception {
@@ -24066,6 +24066,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/multiplatform/kt60902.kt");
}
@Test
@TestMetadata("kt63860.kt")
public void testKt63860() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/kt63860.kt");
}
@Test
@TestMetadata("kt63860_2.kt")
public void testKt63860_2() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/kt63860_2.kt");
}
@Test
@TestMetadata("manyImplMemberNotImplemented.kt")
public void testManyImplMemberNotImplemented() throws Exception {