[NI] Don't report overload ambiguity for error candidates
This commit is contained in:
@@ -270,7 +270,9 @@ class PSICallResolver(
|
|||||||
if (resolvedCalls.first().status == ResolutionStatus.INCOMPLETE_TYPE_INFERENCE) {
|
if (resolvedCalls.first().status == ResolutionStatus.INCOMPLETE_TYPE_INFERENCE) {
|
||||||
tracingStrategy.cannotCompleteResolve(trace, resolvedCalls)
|
tracingStrategy.cannotCompleteResolve(trace, resolvedCalls)
|
||||||
} else {
|
} else {
|
||||||
tracingStrategy.ambiguity(trace, resolvedCalls)
|
if (!resolvedCalls.all { it.isNewNotCompleted() }) {
|
||||||
|
tracingStrategy.ambiguity(trace, resolvedCalls)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ManyCandidates(resolvedCalls)
|
return ManyCandidates(resolvedCalls)
|
||||||
|
|||||||
Reference in New Issue
Block a user