K2: Fix false-positive overload ambiguity after smart cast

Mostly, the change is just mirroring the same logic from K1
OverloadingConflictResolver

^KT-58524 Fixed
This commit is contained in:
Denis.Zharkov
2023-05-09 16:52:47 +02:00
committed by Space Team
parent efdecc63cb
commit 442844f165
9 changed files with 159 additions and 2 deletions
@@ -27317,6 +27317,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/extensionReceiverAndVarargs.kt");
}
@Test
@TestMetadata("filteringOutOverrides.kt")
public void testFilteringOutOverrides() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/filteringOutOverrides.kt");
}
@Test
@TestMetadata("genericClash.kt")
public void testGenericClash() throws Exception {
@@ -27317,6 +27317,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/extensionReceiverAndVarargs.kt");
}
@Test
@TestMetadata("filteringOutOverrides.kt")
public void testFilteringOutOverrides() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/filteringOutOverrides.kt");
}
@Test
@TestMetadata("genericClash.kt")
public void testGenericClash() throws Exception {