diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-11 00:00:56 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-11 00:00:56 -0400 |
commit | 27319a805be7c9dfcee62efd6181dec9afc50dd4 (patch) | |
tree | fbf4e19e32dc0dc19951820be109767a9612f1fd /parse.c | |
parent | 84cc4509415e13ab9052eabd72fbd45f24c57108 (diff) | |
parent | 272d8bfd9c7b04b32f32b327833057469e8de05a (diff) |
...
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -327,11 +327,12 @@ static bool parse_type(Parser *p, Type *type) { } t->token++; /* move past ) */ Type *ret_type = type->fn.types; - /* if there's a symbol that isn't [ or (, that can't be the start of a type */ + /* if there's a symbol that isn't [, (, or &, that can't be the start of a type */ if ((t->token->kind == TOKEN_KW && t->token->kw <= KW_LAST_SYMBOL && t->token->kw != KW_LSQUARE - && t->token->kw != KW_LPAREN) + && t->token->kw != KW_LPAREN + && t->token->kw != KW_AMPERSAND) || t->token->kw == KW_AS) { ret_type->kind = TYPE_VOID; ret_type->flags = 0; |