mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
A class may not at the same time be a subtype of two interface types which are different parameterizations of the same generic interface(IDEA-122475); revert workarounds for javac 6 bug
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ interface IA2<T> {}
|
||||
interface IB2<T> extends IA2<T[]> {}
|
||||
|
||||
class A2 {
|
||||
<T extends IA2<Object[]> & IB2<?>> void foo(){}
|
||||
<<error descr="'IA2' cannot be inherited with different type arguments: 'java.lang.Object[]' and 'capture<?>[]'"></error>T extends IA2<Object[]> & IB2<?>> void foo(){}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user