diff options
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index d7caae280..7cbf479e4 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -206,7 +206,7 @@ Type *check_assignment_variable(Checker *c, Operand *rhs, AstNode *lhs_node) { check_expr(c, &lhs, lhs_node); if (lhs.mode == Addressing_Invalid || - lhs.type == t_invalid) { + (lhs.type == t_invalid && lhs.mode != Addressing_Overload)) { return nullptr; } |