Fixed: regression in comments for @deprecated and @pure.

This commit is contained in:
Christoffer Lerno
2025-08-04 13:25:30 +02:00
parent f2d27229d2
commit cb2d8133e0
2 changed files with 3 additions and 2 deletions

View File

@@ -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`.

View File

@@ -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