mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
reifiable type check fixed for local classes; instanceof check to use the same algorithm (IDEA-146352; IDEA-146351)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class B<T> {
|
||||
|
||||
Object[] foo(Object obj) {
|
||||
class C {}
|
||||
return <error descr="Generic array creation">new C[0]</error>;
|
||||
}
|
||||
|
||||
|
||||
boolean foo1(Object obj) {
|
||||
class C {}
|
||||
return obj instanceof <error descr="Illegal generic type for instanceof">C</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user