11 lines
145 B
Text
Executable file
11 lines
145 B
Text
Executable file
// Test types in a Cast (cannot cast to unrelated type)
|
|
|
|
class Main {
|
|
void main() {
|
|
int a;
|
|
boolean b;
|
|
//b = false;
|
|
|
|
a = (int) b;
|
|
}
|
|
}
|