mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
diamonds: fix conflicting names between constructor and class type parameters (rename the constructor type parameters)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
interface E {}
|
||||
interface A<T> {}
|
||||
class N<P extends E> implements A<P> {
|
||||
<P extends E> N(P p) {}
|
||||
}
|
||||
|
||||
class K {
|
||||
<J extends E> A<J> f(J p) {
|
||||
return new N<>(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user