www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14633] New: DDoc: false warnings for missing parameters on

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 puremagic.com
          Reporter: lio+bugzilla 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.

--
May 30 2015