mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: accept captured wildcard opening during subtype constraint reduction
This commit is contained in:
+5
@@ -114,6 +114,11 @@ public class SubtypingConstraint implements ConstraintFormula {
|
||||
if (tBound.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (myS instanceof PsiCapturedWildcardType) {
|
||||
myS = ((PsiCapturedWildcardType)myS).getWildcard();
|
||||
}
|
||||
|
||||
if (myS instanceof PsiWildcardType) {
|
||||
final PsiType sBound = ((PsiWildcardType)myS).getBound();
|
||||
if (sBound != null && ((PsiWildcardType)myS).isExtends()) {
|
||||
|
||||
Reference in New Issue
Block a user