new inference: assert that no resolve is performed on the "inference-in-progress" reference

This commit is contained in:
Anna Kozlova
2015-04-29 21:39:25 +02:00
parent f629e68a55
commit e86c7dcb25
5 changed files with 67 additions and 30 deletions

View File

@@ -0,0 +1,20 @@
import java.util.*;
class Test {
public static void main(String[] args) {
new A<>(new B<>(of("")));
}
static <E> List<E> of(E element) {
return null;
}
static class A<K> {
A(String s) {}
A(B<K> b) {}
}
static class B<T> extends ArrayList<List<T>> {
public B(List<T> l) {}
}
}