compiler-design-eth/javali_tests/HW4_nop90/Casts/ErrObjectToArrayCast.javali

14 lines
144 B
Text
Raw Permalink Normal View History

2020-01-15 22:34:57 +01:00
// Test downcast from Object to array
class Main {
void main() {
A[] a;
Object o;
o = new Object();
a = (A[]) o;
}
}
class A{}