reifiable type check fixed for local classes; instanceof check to use the same algorithm (IDEA-146352; IDEA-146351)

This commit is contained in:
Anna Kozlova
2015-10-14 17:05:36 +02:00
parent 6dc2a6c4dd
commit 4916734a24
4 changed files with 40 additions and 41 deletions
@@ -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>;
}
}