mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +07:00
intersection rules: flatten unbounded wildcard with everything (IDEA-132431)
This commit is contained in:
1 parent
6aef1682d6
commit
96bfd65ab3
3 files changed
+24
-2
No files matched your search
+18
@@ -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