Skip to content

Commit

Permalink
Commit before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian13579 committed Feb 28, 2021
1 parent 4dd3016 commit d98b7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/semantics/autotype_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def visit(self, node, scope):
node.inferenced_type = self.context.get_type("Bool")

def add_error(self, node:Node, text:str):
line, col = node.get_position() if node else 0, 0
line, col = node.get_position() if node else (0, 0)
self.errors.append(f"({line}, {col}) - " + text)
# todo: Revisar los auto types que me hace falta y que no
# todo: completar de manera acorde el autotype collector
Expand Down

0 comments on commit d98b7b3

Please sign in to comment.