Issue 24204 - Params section in ddoc comments causes warnings with unnamed parameters
Summary: Params section in ddoc comments causes warnings with unnamed parameters
Status: RESOLVED DUPLICATE of issue 24203
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ddoc, diagnostic
Depends on:
Blocks:
 
Reported: 2023-10-28 01:02 UTC by elpenguino+D
Modified: 2023-10-28 01:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elpenguino+D 2023-10-28 01:02:06 UTC
Compile with `-D -w`:
```
/// Params:
void foo(int) {}
```

In DMD 2.105.2, this produces a warning: `Warning: Ddoc: parameter count mismatch, expected 1, got 0`

Unnamed parameters should be ignored.
Comment 1 elpenguino+D 2023-10-28 01:03:51 UTC

*** This issue has been marked as a duplicate of issue 24203 ***