mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-18 17:08:21 +00:00
Fix error reporting for assignment to a built-in procedure (#183)
This commit is contained in:
@@ -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