Skip to content

Commit

Permalink
Fix error reporting for assignment to a built-in procedure (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Feb 7, 2018
1 parent 001b48a commit 8f913c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/check_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ Type *check_assignment_variable(Checker *c, Operand *lhs, Operand *rhs) {
bool used = false;

if (lhs->mode == Addressing_Invalid ||
(lhs->type == t_invalid && lhs->mode != Addressing_ProcGroup)) {
(lhs->type == t_invalid &&
lhs->mode != Addressing_ProcGroup &&
lhs->mode != Addressing_Builtin)) {
return nullptr;
}

Expand Down

0 comments on commit 8f913c6

Please sign in to comment.