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

Struct members missing from docs when the struct has a ditto ddoc comment #19346

Open
dlangBugzillaToGithub opened this issue Dec 14, 2017 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Jonathan M Davis (@jmdavis) reported this on 2017-12-14T00:43:08Z

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

CC List

Description

If ddoc is generated for this code:

================
/// Something about foo.
auto foo() { return 42; }

/// Ditto
struct Foo
{
    /// Something about bar.
    auto bar() { return "str"; }
}
================

then the documentation for the function foo and the struct Foo is shown, correctly merged together. However, the documentation for Foo.bar does not show up. In contrast, if the struct is documented first, and ditto is used on the fnuction, then all of the struct's members show up correctly in the documentation. So, something about documenting a struct with ditto makes it so that none of its members show up in the documentation.
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