Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/AfterBounds.java
anna 693eddf5d8 new inference: testdata
(cherry picked from commit 6f0f160f905ae275a2eeaca58343a176df1a42c8)
2013-11-25 16:48:14 +01:00

20 lines
412 B
Java

import java.util.List;
class Test {
interface I<T> {
T foo();
}
static class Foo<X> {
static <T> Foo<T> foo() { return null; }
}
<T, S extends Foo<T>> List<T> meth(I<S> p) { return null; }
void test() {
List<?> l1 = meth(Foo::new);
List<?> l2 = meth(Foo::foo);
List<String> l3 = meth(Foo::new);
List<String> l4 = meth(Foo::foo);
}
}