K2: discriminate candidates with adaptations in the first place in ConeOverloadConflictResolver
Before this commit, we discriminated particular candidates with callable reference adaptations during resolution stages. After disabling compatibility mode for new inference, it's not so, but now we discriminate similar candidates in ConeOverloadConflictResolver; more precisely, it's candidates with callable reference adaptation in their postponed atoms. This does not allow going up the tower, but allows to select better candidate at similar tower level. Related to KT-63558, KT-64307, KT-64308
This commit is contained in:
committed by
Space Team
parent
087edc026d
commit
d3a0a6cabe
+6
@@ -21920,6 +21920,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/recursiveSelfTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("runnableOrCallable.kt")
|
||||
public void testRunnableOrCallable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/runnableOrCallable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("safeCallDefinitelyNotNull.kt")
|
||||
public void testSafeCallDefinitelyNotNull() throws Exception {
|
||||
|
||||
+6
@@ -21926,6 +21926,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/recursiveSelfTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("runnableOrCallable.kt")
|
||||
public void testRunnableOrCallable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/runnableOrCallable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("safeCallDefinitelyNotNull.kt")
|
||||
public void testSafeCallDefinitelyNotNull() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user