new inference: cleanup

This commit is contained in:
Anna Kozlova
2014-03-05 16:17:00 +01:00
parent b3b99f44e1
commit 95977a086c
2 changed files with 1 additions and 13 deletions
@@ -110,18 +110,6 @@ public class InferenceIncorporationPhase {
}
}
}
//todo no such a rule in spec?!
for (PsiType lowerBound : lowerBounds) {
if (mySession.isProperType(lowerBound)) {
final PsiSubstitutor substitutor = PsiSubstitutor.EMPTY.put(inferenceVariable.getParameter(), lowerBound);
for (PsiType upperBound : upperBounds) {
if (!mySession.isProperType(upperBound)) {
addConstraint(new StrictSubtypingConstraint(substitutor.substitute(upperBound), lowerBound));
}
}
}
}
}
for (Pair<PsiTypeParameter[], PsiClassType> capture : myCaptures) {
@@ -2,6 +2,6 @@ class A<T> {
<T extends A<T>> void foo(T x){}
void bar(A<?> x){
<error descr="Inferred type 'A<capture<?>>' for type parameter 'T' is not within its bound; should extend 'A<A<capture<?>>>'">foo(x)</error>;
<error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'A<capture<? extends A<capture<?>>>>'">foo(x)</error>;
}
}