12 lines
137 B
Text
Executable file
12 lines
137 B
Text
Executable file
// Test downcast from array to Object
|
|
|
|
class Main {
|
|
void main() {
|
|
int[] x;
|
|
Object o;
|
|
|
|
x = new int[5];
|
|
|
|
o = (Object) x;
|
|
}
|
|
}
|