class A {} class B:A {} void main() { A[] a = new B[6]; a[0] = new A(); }