Commit 3dc38b5c authored by Xavier Thompson's avatar Xavier Thompson

Let 'not' simply inverse the truth value of a cypclass

parent 078454cd
......@@ -10587,7 +10587,7 @@ class NotNode(UnopNode):
def analyse_types(self, env):
self.operand = self.operand.analyse_types(env)
operand_type = self.operand.type
if operand_type.is_cpp_class:
if operand_type.is_cpp_class and not operand_type.is_cyp_class:
self.analyse_cpp_operation(env)
else:
self.operand = self.operand.coerce_to_boolean(env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment