FIR resolve: do not launch overload conflict resolve for erroneous
This commit is contained in:
+6
-2
@@ -554,8 +554,12 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
|
|||||||
val consumer = createFunctionConsumer(session, name, info, inferenceComponents)
|
val consumer = createFunctionConsumer(session, name, info, inferenceComponents)
|
||||||
val result = resolver.runTowerResolver(consumer, implicitReceiverStack.asReversed())
|
val result = resolver.runTowerResolver(consumer, implicitReceiverStack.asReversed())
|
||||||
val bestCandidates = result.bestCandidates()
|
val bestCandidates = result.bestCandidates()
|
||||||
val reducedCandidates = ConeOverloadConflictResolver(TypeSpecificityComparator.NONE, inferenceComponents)
|
val reducedCandidates = if (result.currentApplicability < CandidateApplicability.SYNTHETIC_RESOLVED) {
|
||||||
.chooseMaximallySpecificCandidates(bestCandidates, discriminateGenerics = false)
|
bestCandidates.toSet()
|
||||||
|
} else {
|
||||||
|
ConeOverloadConflictResolver(TypeSpecificityComparator.NONE, inferenceComponents)
|
||||||
|
.chooseMaximallySpecificCandidates(bestCandidates, discriminateGenerics = false)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// fun isInvoke()
|
// fun isInvoke()
|
||||||
|
|||||||
Reference in New Issue
Block a user