Removed debug print

This commit is contained in:
Mattia Giambirtone 2022-08-01 11:36:23 +02:00
parent 0fdddbfda4
commit a370961218
1 changed files with 0 additions and 2 deletions

View File

@ -1331,7 +1331,6 @@ proc checkCallIsPure(self: Compiler, node: ASTnode): bool =
proc callExpr(self: Compiler, node: CallExpr): Name {.discardable.} =
## Compiles code to call a function
echo node
var args: seq[tuple[name: string, kind: Type]] = @[]
var argExpr: seq[Expression] = @[]
var kind: Type
@ -1339,7 +1338,6 @@ proc callExpr(self: Compiler, node: CallExpr): Name {.discardable.} =
# TODO: Keyword arguments
for i, argument in node.arguments.positionals:
kind = self.inferType(argument)
echo argument
if kind.isNil():
if argument.kind == identExpr:
self.error(&"reference to undeclared name '{IdentExpr(argument).name.lexeme}'")