Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDoc: comments on function templates are skipped for templates without doc comment #19071

Open
dlangBugzillaToGithub opened this issue Nov 17, 2015 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

Lionello Lunesu (@lionello) reported this on 2015-11-17T05:46:10Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=15349

CC List

  • John Hall

Description

template case3(fun...)
{
    /++ Blah
    Params:
        r = an value
    +/
    void case3(R)(R r){}
}

No doc is emitted for case3. Adding a DDoc comment on the template will cause the nested doc from being emitted.
@dlangBugzillaToGithub
Copy link
Author

john.michael.hall commented on 2017-11-30T17:00:43Z

I have a related issue with the code below. When I compile this, I get the first one, but not the second one. Further, the top line foo(f...) does not show up, only T foo(f...)(T x).

/++
Some foo template
+/
template foo(f...)
{
    /++
    Foo here
    +/
    T foo(T x)
    {
        return f(x) + 1;
    }
    
    /++
    Alternate Foo here
    +/
    T foo(T x, T y)
    {
        return f(x, y) + 1;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants