diff --git a/releasenotes.md b/releasenotes.md index 0b6c0d0b3..99828c052 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -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`. diff --git a/src/compiler/parse_global.c b/src/compiler/parse_global.c index ff2ab04c3..eb036656f 100644 --- a/src/compiler/parse_global.c +++ b/src/compiler/parse_global.c @@ -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