ensure inference errors are removed before the next round

This commit is contained in:
Anna Kozlova
2015-11-20 21:47:13 +01:00
parent 6bec6fdf0f
commit 19a7ef3488
@@ -260,6 +260,7 @@ public class MethodCandidateInfo extends CandidateInfo{
public PsiSubstitutor getSubstitutor(boolean includeReturnConstraint) {
PsiSubstitutor substitutor = myCalcedSubstitutor;
if (substitutor == null || !includeReturnConstraint && myLanguageLevel.isAtLeast(LanguageLevel.JDK_1_8) || isOverloadCheck()) {
myInferenceError = null;
PsiSubstitutor incompleteSubstitutor = super.getSubstitutor();
PsiMethod method = getElement();
if (myTypeArguments == null) {