[Issue 8943] New: Cannot get parent of an overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 2 09:08:43 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8943
Summary: Cannot get parent of an overload
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: samukha at voliacable.com
--- Comment #0 from Max Samukha <samukha at voliacable.com> 2012-11-02 09:08:42 PDT ---
struct S
{
void foo();
}
// Just to be able to alias __traits
template AliasTuple(A...)
{
alias A AliasTuple;
}
alias AliasTuple!(__traits(getOverloads, S, "foo")) Overloads;
alias AliasTuple!(__traits(parent, Overloads[0])) P; // fail
static assert(is(P[0] == S));
Error: argument foo has no parent
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list