Fix error reporting for assignment to a built-in procedure (#183)
This commit is contained in:
1 parent
001b48a5c6
commit
8f913c656c
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user