[Issue 14633] New: DDoc: false warnings for missing parameters on template declaration
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 30 08:02:26 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14633
Issue ID: 14633
Summary: DDoc: false warnings for missing parameters on
template declaration
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: lio+bugzilla at lunesu.com
There are two cases where the ddoc compiler issues a warning for missing
parameters:
/** Blah
Params:
T = some type
test = something
*/
template case1(T)
{
void case1(R)(R test) { }
}
///ditto
alias case2 = case1!int;
In both cases `test` refers to the function parameter for the template function
`case1`. The ddoc compiler current looks for function parameters and template
parameters, but does not check the function parameters of a nested/eponymous
function template declaration.
--
More information about the Digitalmars-d-bugs
mailing list