[NI] Move abstract class instantiation check to call checkers
This way the check works for callable reference arguments. Also candidate applicability during resolution does not change compared to the old inference. ^KT-37530 Fixed
This commit is contained in:
+10
@@ -1884,6 +1884,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt35959.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37530.kt")
|
||||
public void testKt37530() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt37530.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7430_wrongClassOnLHS.kt")
|
||||
public void testKt7430_wrongClassOnLHS() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt7430_wrongClassOnLHS.kt");
|
||||
@@ -15860,6 +15865,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/overload/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("disambiguateByFailedAbstractClassCheck.kt")
|
||||
public void testDisambiguateByFailedAbstractClassCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/disambiguateByFailedAbstractClassCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EmptyArgumentListInLambda.kt")
|
||||
public void testEmptyArgumentListInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/EmptyArgumentListInLambda.kt");
|
||||
|
||||
Reference in New Issue
Block a user