Skip to content

Commit

Permalink
fix(resolver): Update param extraction from procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
ngjunsiang committed Apr 21, 2022
1 parent 196b1de commit 7772433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def verifyCall(frame, stmt):
proc = frame[name]
if proc['type'] != 'procedure':
raise LogicError(f"CALL {proc['name']} is not a procedure")
params = proc['params']
params = proc['value']['params']
args = stmt['args']
if len(args) != len(params):
raise LogicError(f'Expected {len(params)} args, got {len(args)}')
Expand Down

0 comments on commit 7772433

Please sign in to comment.