19 lines
220 B
Text
19 lines
220 B
Text
// Test type errors with unary operator
|
|
|
|
class Main {
|
|
void main() {
|
|
int x,y,z;
|
|
boolean a;
|
|
x = -100;
|
|
y = 5;
|
|
|
|
a = -true;
|
|
z = -y;
|
|
x = +x;
|
|
write(x);
|
|
writeln();
|
|
write(z);
|
|
writeln();
|
|
write(-a);
|
|
}
|
|
}
|