Bug 10366 – Ddoc: Symbols in template classes don't get fully qualified anchors
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-15T12:17:00Z
Last change time
2015-06-09T05:13:48Z
Keywords
pull
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2013-06-15T12:17:37Z
class Foo (T)
{
///
void bar() { };
}
Two anchors will be generated for Foo.bar: "bar" and ".bar". If the class is not a template "bar" and ".Foo.bar" will be generated. I'm not 100% that is due to Foo being a template, but I suspect that's the reason.
Apparently, there is still one case that doesn't work, when there's a template function inside a templated struct or class:
------
struct S(T) {
void func(U)(U u) { }
}
------