mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-26 18:48:04 +00:00
Fixed TypedUnary Type
This commit is contained in:
parent
8209ca9c2c
commit
49afcac4cf
@ -42,7 +42,7 @@ public class TypedUnary implements TypedExpression {
|
||||
TypedProgram.addException(UnaryOperator.SUB.name(),new RuntimeException("Minus operator must be applied to int") );
|
||||
return null;
|
||||
}
|
||||
return Type.INT;
|
||||
return Type.BOOL;
|
||||
}
|
||||
TypedProgram.addException("UnknownUnary",new RuntimeException("Unknown unary operator") );
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user