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:
committed by
Space Team
parent
efdecc63cb
commit
442844f165
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user