mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: ignore proper types in mutual eq constraints generation
This commit is contained in:
+2
@@ -175,9 +175,11 @@ public class InferenceIncorporationPhase {
|
||||
for (int i = 0; i < eqBounds.size(); i++) {
|
||||
PsiType sBound= eqBounds.get(i);
|
||||
if (sBound == null) continue;
|
||||
final boolean properType = mySession.isProperType(sBound);
|
||||
for (int j = i + 1; j < eqBounds.size(); j++) {
|
||||
final PsiType tBound = eqBounds.get(j);
|
||||
if (tBound == null) continue;
|
||||
if (properType && mySession.isProperType(tBound)) continue;
|
||||
addConstraint(new TypeEqualityConstraint(tBound, sBound));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user