diff --git a/releasenotes.md b/releasenotes.md index b064e3fa9..eb9d68ba5 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -22,6 +22,7 @@ - Add `d` as floating point suffix for `double` types. - Deprecate `f32`, `f64` and `f128` suffixes. - Allow recursive generic modules. +- Add deprecation for `@param foo "abc"`. ### Fixes - Assert triggered when casting from `int[2]` to `uint[2]` #2115 diff --git a/src/compiler/parse_global.c b/src/compiler/parse_global.c index e99d697d1..95347dcac 100644 --- a/src/compiler/parse_global.c +++ b/src/compiler/parse_global.c @@ -2851,6 +2851,11 @@ static inline bool parse_contract_param(ParseContext *c, AstId *docs, AstId **do return false; } } + else + { + RANGE_EXTEND_PREV(ast); + SEMA_DEPRECATED(ast, "Not using ':' before the string is deprecated."); + } } append_docs(docs_next, docs, ast); return true;