mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: avoid self bounds when possible
This commit is contained in:
+3
-1
@@ -118,7 +118,9 @@ public class ExpressionCompatibilityConstraint extends InputOutputConstraintForm
|
||||
else {
|
||||
returnType = callSubstitutor.substitute(returnType);
|
||||
}
|
||||
constraints.add(new TypeCompatibilityConstraint(GenericsUtil.eliminateWildcards(myT, false), returnType));
|
||||
if (!TypeConversionUtil.isAssignable(myT, returnType)) {
|
||||
constraints.add(new TypeCompatibilityConstraint(GenericsUtil.eliminateWildcards(myT, false), returnType));
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user