[Issue 23855] traits getOverloads returns overload when one of the symbols is a templatized function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 24 08:27:38 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23855

--- Comment #3 from FeepingCreature <default_357-line at yahoo.de> ---
Okay, I can't work this out on my own, but it's *something* about `static
foreach`: `alias udas = __traits(getAttributes, overloads[0]);` works. Somehow
the loop variable in `static foreach` ends up in the original module symbol,
`overnext` included: it's supposed to be a `FuncAliasDeclaration` from
`getOverloads`, but even though it creates the tuple right, somewhere in the
`static foreach` code, DMD gets rid of it again.

--


More information about the Digitalmars-d-bugs mailing list