Add deprecation for @param foo "abc".

This commit is contained in:
Christoffer Lerno
2025-05-29 00:45:11 +02:00
parent a5a2b00ec8
commit bb96dc931e
2 changed files with 6 additions and 0 deletions

View File

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

View File

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