intersection rules: flatten unbounded wildcard with everything (IDEA-132431)

This commit is contained in:
Anna Kozlova
2014-11-07 15:30:53 +01:00
parent 6aef1682d6
commit 96bfd65ab3
3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
interface A<T> {
void method();
}
interface B<T extends A<?>> {
void method(T arg);
}
interface C {
void method(B<? extends A<String>> arg);
}
class Test {
public static void test(C c) {
c.method(arg -> arg.method( ));
}
}