Thread overview
[Issue 24203] Params section in ddoc comments causes warnings with unnamed parameters
Nov 20, 2023
Nick Treleaven
October 28, 2023
https://issues.dlang.org/show_bug.cgi?id=24203

--- Comment #1 from elpenguino+D@gmail.com ---
*** Issue 24204 has been marked as a duplicate of this issue. ***

--
November 20, 2023
https://issues.dlang.org/show_bug.cgi?id=24203

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
I think this warning is correct - why have a 'Params' section with no content?

--
November 20, 2023
https://issues.dlang.org/show_bug.cgi?id=24203

--- Comment #3 from elpenguino+D@gmail.com ---
(In reply to Nick Treleaven from comment #2)
> I think this warning is correct - why have a 'Params' section with no content?

There is no warning for an empty Params section. This warning is produced for
```
/// Params:
/// a = b
void foo(int a, int) {}
```
But it is not produced for
```
/// Params:
void foo() {}
```
The example was just the simplest reproduction I could come up with.

--