mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix @return? parsing.
This commit is contained in:
@@ -2709,7 +2709,7 @@ static inline bool parse_doc_optreturn(ParseContext *c, AstId *docs, AstId **doc
|
|||||||
Ast **returns = NULL;
|
Ast **returns = NULL;
|
||||||
Ast *ast = ast_new_curr(c, AST_CONTRACT);
|
Ast *ast = ast_new_curr(c, AST_CONTRACT);
|
||||||
ast->span = c->prev_span;
|
ast->span = c->prev_span;
|
||||||
advance_and_verify(c, TOKEN_BANG);
|
advance_and_verify(c, TOKEN_QUESTION);
|
||||||
ast->contract_stmt.kind = CONTRACT_OPTIONALS;
|
ast->contract_stmt.kind = CONTRACT_OPTIONALS;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user