switch tests on new inference

(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
This commit is contained in:
anna
2013-11-25 16:47:38 +01:00
parent 23432e3cd7
commit 481bc252f3
44 changed files with 698 additions and 32 deletions
@@ -0,0 +1,14 @@
import java.util.*;
interface A2{};
interface B extends A2{};
class GenericTest {
public static <M extends V, V> List<V> convert(List<M> list){
return new ArrayList<V>();
}
public static void test(){
// it prompts convert returns List<B>
List<A2> as = convert(new ArrayList<B>());
}
}