aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormatias <matiasfmolinari@gmail.com>2023-05-10 02:58:17 -0400
committerGitHub <noreply@github.com>2023-05-10 02:58:17 -0400
commit277ae4e2b026b2b45d2ec5b6d59097f42722846d (patch)
tree9adb8070a7831d7ecd7d4d8f8980ba1be3df95a0 /src
parent0f9e747583911f8daba2f4e3db7a8f459a143f9d (diff)
Patch "no_copy" typo in parser.cpp
Diffstat (limited to 'src')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
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;