mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 07:38:03 +00:00
Fixed TypedUnary Type
This commit is contained in:
parent
7b163baa13
commit
e2937b13e5
@ -42,7 +42,7 @@ public class TypedUnary implements TypedExpression {
|
||||
if (right.typeCheck(typedProgram) != Type.INT) {
|
||||
throw new RuntimeException("Minus operator must be applied to int");
|
||||
}
|
||||
return Type.INT;
|
||||
return Type.BOOL;
|
||||
}
|
||||
throw new RuntimeException("Unknown unary operator");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user