convert to light test case

This commit is contained in:
Anna.Kozlova
2018-12-28 16:26:28 +01:00
parent 745cd24f06
commit 44b0ad8059
10 changed files with 48 additions and 50 deletions
@@ -0,0 +1,21 @@
package pck;
import java.util.Collection;
import java.util.List;
import static pck.D.foo;
import static pck.C.foo;
class C {
static <T extends Collection<S>, S> void foo(T x) { }
}
class D {
static <T extends List<T>> T foo(T x) { return null; }
}
class B{
public static void bar(){
List<?> x = foo(null).get(0);
}
}