mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add deprecation for @param foo "abc".
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user