mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
captured wildcards: refactor to extract same parts for extends/super wildcards, ensure upper bound is not lost for extends wildcard (IDEA-57292)
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
|
||||
class C56 {
|
||||
|
||||
class A<T,S extends T> {}
|
||||
|
||||
class C {
|
||||
void foo(A<?,?> x){
|
||||
bar(x);
|
||||
}
|
||||
<T,S extends T> void bar(A<T,S> x){}
|
||||
}
|
||||
}
|
||||
|
||||
class C57 {
|
||||
class B<T,S> {}
|
||||
class A<T,S extends T> extends B<T,S> {}
|
||||
|
||||
class C {
|
||||
void foo(A<?,?> x){
|
||||
bar(x);
|
||||
}
|
||||
<T,S extends T> void bar(B<T,S> x){}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user