14 lines
144 B
Text
14 lines
144 B
Text
|
// Test downcast from Object to array
|
||
|
|
||
|
class Main {
|
||
|
void main() {
|
||
|
A[] a;
|
||
|
Object o;
|
||
|
|
||
|
o = new Object();
|
||
|
|
||
|
a = (A[]) o;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class A{}
|