mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
captured wildcard: if one of captures contains super wildcard, existential types must be the same (symmetry)
This commit is contained in:
@@ -64,7 +64,11 @@ public class PsiCapturedWildcardType extends PsiType.Stub {
|
||||
}
|
||||
|
||||
final PsiCapturedWildcardType captured = (PsiCapturedWildcardType)o;
|
||||
if (!myContext.equals(captured.myContext) || myExistential.isSuper() && !myExistential.equals(captured.myExistential)) {
|
||||
if (!myContext.equals(captured.myContext)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((myExistential.isSuper() || captured.myExistential.isSuper()) && !myExistential.equals(captured.myExistential)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user