mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
type arguments distinct checker: do not distinguish wildcards with array bounds from arrays with corresponding bounds (IDEA-134944)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
public static <T> void fooBar(final Class<?> aClass,
|
||||
final Class<? super Number[]> aSuperClass,
|
||||
final Class<? extends Number[]> anExtendsClass) {
|
||||
Class<T[]> klazz = (Class<T[]>) aClass;
|
||||
klazz = <error descr="Inconvertible types; cannot cast 'java.lang.Class<capture<? super java.lang.Number[]>>' to 'java.lang.Class<T[]>'">(Class<T[]>) aSuperClass</error>;
|
||||
klazz = (Class<T[]>) anExtendsClass;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user