[K2] Make CONFLICTING_OVERLOADS + HIDDEN ignore work only for finals

When fixing KT-22004, the analysis was incomplete, the details are
available at KT-63540. This change restricts the ignore of conflicting
overloads on hidden callables only for final ones.

^KT-63540 Fixed
This commit is contained in:
marat.akhin
2023-11-16 20:37:30 +01:00
committed by Space Team
parent e4e4af4d3d
commit 0bc79fe69d
10 changed files with 487 additions and 32 deletions
@@ -27297,6 +27297,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/overload/noConflictingOverloadsWithDeprecatedHidden/NoHiddenTransitivityFromClassifierToConstructor.kt");
}
@Test
@TestMetadata("OpenFunctionsInMemberScope.kt")
public void testOpenFunctionsInMemberScope() throws Exception {
runTest("compiler/testData/diagnostics/tests/overload/noConflictingOverloadsWithDeprecatedHidden/OpenFunctionsInMemberScope.kt");
}
@Test
@TestMetadata("TypeParameterMultipleBounds.kt")
public void testTypeParameterMultipleBounds() throws Exception {
@@ -27297,6 +27297,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/overload/noConflictingOverloadsWithDeprecatedHidden/NoHiddenTransitivityFromClassifierToConstructor.kt");
}
@Test
@TestMetadata("OpenFunctionsInMemberScope.kt")
public void testOpenFunctionsInMemberScope() throws Exception {
runTest("compiler/testData/diagnostics/tests/overload/noConflictingOverloadsWithDeprecatedHidden/OpenFunctionsInMemberScope.kt");
}
@Test
@TestMetadata("TypeParameterMultipleBounds.kt")
public void testTypeParameterMultipleBounds() throws Exception {