mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixed: regression in comments for @deprecated and @pure.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
- Codegen error in `if (try x = (false ? io::EOF? : 1))`, i.e. using if-try with a CT known value.
|
||||
- Reduce allocated Vmem for the compiler on 32 bit machines.
|
||||
- Bug causing a compiler error when parsing a broken lambda inside of an expression.
|
||||
- Fixed: regression in comments for `@deprecated` and `@pure`.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `==` to `Pair`, `Triple` and TzDateTime. Add print to `Pair` and `Triple`.
|
||||
|
||||
@@ -3048,7 +3048,7 @@ static bool parse_contracts(ParseContext *c, AstId *contracts_ref)
|
||||
else if (name == kw_at_deprecated)
|
||||
{
|
||||
advance(c);
|
||||
if (!parse_doc_discarded_comment(c)) return false;
|
||||
if (!parse_doc_direct_comment(c)) return false;
|
||||
REMINDER("Implement @deprecated tracking");
|
||||
}
|
||||
else if (name == kw_at_require)
|
||||
@@ -3064,7 +3064,7 @@ static bool parse_contracts(ParseContext *c, AstId *contracts_ref)
|
||||
Ast *ast = ast_new_curr(c, AST_CONTRACT);
|
||||
ast->contract_stmt.kind = CONTRACT_PURE;
|
||||
advance(c);
|
||||
if (!parse_doc_discarded_comment(c)) return false;
|
||||
if (!parse_doc_direct_comment(c)) return false;
|
||||
append_docs(next, contracts_ref, ast);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user