mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
intersection rules: flatten unbounded wildcard with everything (IDEA-132431)
This commit is contained in:
@@ -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( ));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user