mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix new(sync.Mutex)
This commit is contained in:
+1
-1
@@ -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) {
|
gb_internal bool check_no_copy_assignment(Operand const &o, String const &context) {
|
||||||
if (o.type && is_type_no_copy(o.type)) {
|
if (o.type && is_type_no_copy(o.type)) {
|
||||||
Ast *expr = unparen_expr(o.expr);
|
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) {
|
if (expr->kind == Ast_CallExpr) {
|
||||||
// Okay
|
// Okay
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user