[NI] Fix KotlinResolutionCandidate.isSuccessfull
Check if ConstrainSystem has any contradiction in 'isSuccessful'. Otherwise we may erroneously think that there are some successful candidates in 'TowerResolver.SuccessfullResultCollector.pushCandidates()' and clear other unsuccessful ones (while they actually may have higher applicability).
This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@ class KotlinResolutionCandidate(
|
|||||||
override val isSuccessful: Boolean
|
override val isSuccessful: Boolean
|
||||||
get() {
|
get() {
|
||||||
processParts(stopOnFirstError = true)
|
processParts(stopOnFirstError = true)
|
||||||
return currentApplicability.isSuccess && variableApplicability.isSuccess
|
return currentApplicability.isSuccess && variableApplicability.isSuccess && !getSystem().hasContradiction
|
||||||
}
|
}
|
||||||
|
|
||||||
override val resultingApplicability: ResolutionCandidateApplicability
|
override val resultingApplicability: ResolutionCandidateApplicability
|
||||||
|
|||||||
Reference in New Issue
Block a user