*WIP* error sets - support fns called at comptime

This commit is contained in:
Andrew Kelley
2018-02-03 11:51:29 -05:00
parent b8f59e14cd
commit abf5ae6897
8 changed files with 55 additions and 20 deletions

View File

@@ -2589,7 +2589,7 @@ static AstNode *ast_parse_container_decl(ParseContext *pc, size_t *token_index,
Token *colon_token = &pc->tokens->at(*token_index);
if (colon_token->id == TokenIdColon) {
*token_index += 1;
field_node->data.struct_field.type = ast_parse_prefix_op_expr(pc, token_index, true);
field_node->data.struct_field.type = ast_parse_type_expr(pc, token_index, true);
}
Token *eq_token = &pc->tokens->at(*token_index);
if (eq_token->id == TokenIdEq) {