@@ -96,7 +96,7 @@ class SemanticsVisitor(Visitor):
def check_return(self, tree):
l = self.current_funcdecl
- if len(tree.get_tail()) > 1:
+ if len(tree.get_tail()) > 2:
r = tree.get_tail()[1]
r_type = None
else: