diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-31 15:06:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-31 15:06:20 +0100 |
| commit | b4bdb73158d1c6ec8d3b16d2d5f956e749a98817 (patch) | |
| tree | 5717f7d9a9d2042dd74a3c9fd95b91dea686335a /src/check_expr.cpp | |
| parent | 476030dd2890a4fc0c46afcd8dab3247982a3bd7 (diff) | |
Fix `new(sync.Mutex)`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 3b0198431..cbfde4f4b 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -5738,7 +5738,7 @@ gb_internal bool check_identifier_exists(Scope *s, Ast *node, bool nested = fals gb_internal bool check_no_copy_assignment(Operand const &o, String const &context) { if (o.type && is_type_no_copy(o.type)) { Ast *expr = unparen_expr(o.expr); - if (expr && o.mode != Addressing_Constant) { + if (expr && o.mode != Addressing_Constant && o.mode != Addressing_Type) { if (expr->kind == Ast_CallExpr) { // Okay } else { |