From 277ae4e2b026b2b45d2ec5b6d59097f42722846d Mon Sep 17 00:00:00 2001 From: matias Date: Wed, 10 May 2023 02:58:17 -0400 Subject: [PATCH] Patch "no_copy" typo in parser.cpp --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index f33a44f31..698ba99ab 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2462,7 +2462,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) { } is_raw_union = true; } else if (tag.string == "no_copy") { - if (is_packed) { + if (no_copy) { syntax_error(tag, "Duplicate struct tag '#%.*s'", LIT(tag.string)); } no_copy = true;