inference testdata fixed

(cherry picked from commit 684b8905b9b3be10200c855af7b54d543b128f2b)
This commit is contained in:
anna
2013-11-25 16:47:20 +01:00
parent c0c190fdf7
commit 1f5e19ea8f
2 changed files with 3 additions and 3 deletions
@@ -2,7 +2,7 @@ import java.util.List;
class B{
public static void bar(){
<error descr="Inferred type 'java.util.List<java.lang.Comparable>' for type parameter 'T' is not within its bound; should implement 'java.util.List<java.lang.Comparable<java.util.List<java.lang.Comparable>>>'">foo(null)</error>.get(0).compareTo(null);
foo(null).get(0).compareTo(null);
}
static <T extends List<Comparable<T>>> T foo(T x) {
return x;