mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
new inference: assert that no resolve is performed on the "inference-in-progress" reference
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user