core: Associate data type with symbol, not ast node
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user