ensure that fresh variables are not registered infinitely (IDEA-146740)

This commit is contained in:
Anna Kozlova
2015-10-26 13:50:01 +01:00
parent 1a92e7e12f
commit 116f2b129e
@@ -899,7 +899,9 @@ public class InferenceSession {
}
parameter.putUserData(LOWER_BOUND, lub);
}
var.addBound(elementFactory.createType(parameter), InferenceBound.EQ);
if (!var.addBound(elementFactory.createType(parameter), InferenceBound.EQ)) {
return null;
}
}
myIncorporationPhase.forgetCaptures(vars);
if (!repeatInferencePhases(true)) {