mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure inference errors are removed before the next round
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user