K2: Avoid inference diagnostics when arguments are already error typed
For example, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
It became especially relevant after 0e84bf2053
that together with later commits bring a lot of unnecessary
NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER diagnostic
This commit is contained in:
committed by
Space Team
parent
564b40f05d
commit
fe5adab652
+4
@@ -225,6 +225,10 @@ private fun mapInapplicableCandidateError(
|
||||
)
|
||||
}
|
||||
|
||||
// We don't report anything here, because there are already some errors inside the call or declaration
|
||||
// And the errors should be reported there
|
||||
is ErrorTypeInArguments -> null
|
||||
|
||||
is MultipleContextReceiversApplicableForExtensionReceivers ->
|
||||
FirErrors.AMBIGUOUS_CALL_WITH_IMPLICIT_CONTEXT_RECEIVER.createOn(qualifiedAccessSource ?: source)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user