summaryrefslogtreecommitdiff
path: root/src/parser/parser_stmt.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-20 10:49:40 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-20 10:49:40 +0000
commitf027a812707d68ca0690b7544175b9f302dd57ad (patch)
tree8ca82006fa3213215ff7b70bec5e49e8421413ff /src/parser/parser_stmt.c
parent856198b2ea473a4fd2cd020e58db821265b21ca5 (diff)
Copy trait...
Diffstat (limited to 'src/parser/parser_stmt.c')
-rw-r--r--src/parser/parser_stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parser_stmt.c b/src/parser/parser_stmt.c
index 8fa0a1e..fc34a21 100644
--- a/src/parser/parser_stmt.c
+++ b/src/parser/parser_stmt.c
@@ -1248,7 +1248,7 @@ ASTNode *parse_var_decl(ParserContext *ctx, Lexer *l)
t = s->type_info;
}
}
- if (!is_type_copy(t))
+ if (!is_type_copy(ctx, t))
{
Symbol *s = find_symbol_entry(ctx, init->var_ref.name);
if (s)