23 lines
229 B
Text
23 lines
229 B
Text
// Test casts from type to object
|
|
|
|
class Main {
|
|
void main() {
|
|
C1 a;
|
|
Object o,f,g;
|
|
int x;
|
|
boolean y;
|
|
a = new C1();
|
|
x = 2;
|
|
y = true;
|
|
|
|
|
|
o = (Object) a;
|
|
//f = (Object) x;
|
|
//g = (Object) y;
|
|
}
|
|
}
|
|
|
|
class C1 {}
|
|
|
|
|
|
|