mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 10:38:03 +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") );
|
TypedProgram.addException(UnaryOperator.SUB.name(),new RuntimeException("Minus operator must be applied to int") );
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return Type.INT;
|
return Type.BOOL;
|
||||||
}
|
}
|
||||||
TypedProgram.addException("UnknownUnary",new RuntimeException("Unknown unary operator") );
|
TypedProgram.addException("UnknownUnary",new RuntimeException("Unknown unary operator") );
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user