new inference: reject equals bounds contradicting lower bounds

This commit is contained in:
Anna Kozlova
2014-12-17 09:57:48 +01:00
parent f217ed47c4
commit 1ed0901d4b
6 changed files with 71 additions and 6 deletions
@@ -142,7 +142,7 @@ class S1 {
}
void bar(List<? extends S1> k) {
f<error descr="'f(java.util.List<capture<? extends S1>>, capture<? extends S1>)' in 'S1' cannot be applied to '(java.util.List<capture<? extends S1>>, S1)'">(k, k.get(0))</error>;
f<error descr="'f(java.util.List<java.lang.Object>, java.lang.Object)' in 'S1' cannot be applied to '(java.util.List<capture<? extends S1>>, S1)'">(k, k.get(0))</error>;
}
}