generic array creation: check if component type is reifiable (IDEA-91743)

This commit is contained in:
anna
2012-09-18 16:09:45 +02:00
parent 66502219aa
commit 51afcf78dc
2 changed files with 22 additions and 18 deletions
@@ -138,4 +138,10 @@ class ClassLiteral<T> {
Object c5 = List[].class;
Object c6 = List.class;
}
}
class Outer<E> {
final Inner[] i = <error descr="Generic array creation">new Inner[10]</error>;
class Inner {
}
}