core: Associate data type with symbol, not ast node

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-16 03:39:07 -05:00
parent 995f40aa85
commit 1c2eed0a0d
3 changed files with 4 additions and 3 deletions

View File

@@ -472,7 +472,7 @@ parse_func(struct rifle_state *state, struct token *tok, struct ast_node **res)
}
/* Parse the return type */
if (parse_type(state, tok, &root->dtype) < 0) {
if (parse_type(state, tok, &symbol->dtype) < 0) {
return -1;
}