mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
new inference: skip null subtypes
(cherry picked from commit 837fc3567e628ac753d3e3c19f5c1039465ecf7d)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ public class SubtypingConstraint implements ConstraintFormula {
|
||||
inferenceVariable.addBound(myT, InferenceBound.UPPER);
|
||||
return true;
|
||||
}
|
||||
if (PsiType.NULL.equals(myS)) return true;
|
||||
if (PsiType.NULL.equals(myS) || myS == null) return true;
|
||||
inferenceVariable = session.getInferenceVariable(myT);
|
||||
if (inferenceVariable != null) {
|
||||
inferenceVariable.addBound(myS, InferenceBound.LOWER);
|
||||
|
||||
Reference in New Issue
Block a user