# assume it's correct for now, wait for runtime check
# assume it's correct for now, wait for runtime check
self.myType=TypeStruct("boolean")
self.myType=TypeStruct("boolean",None)
return
return
raiseException("ERROR: Incompatible types. Left of {} type can't be used with right of {} type on operation {}".format(self.op,self.left.myType.name,self.right.myType.name))
raiseException("ERROR: Incompatible types. Left of {} type can't be used with right of {} type on operation {}".format(self.op,self.left.myType.name,self.right.myType.name))
...
@@ -393,3 +417,16 @@ class MethodInvNode(ASTNode):
...
@@ -393,3 +417,16 @@ class MethodInvNode(ASTNode):