[Issue 16206] traits getOverloads fails when one of the overload is a templatized function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 10 22:08:42 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=16206
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |destructionator at gmail.com
--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
ah yes i just hit this too and was about to submit. same thing on module level
void foo()() {}
void foo(int) {}
void main() {
foo(); // works
foo(0); // also works so they seem to be overloaded...
// yet this empty
pragma(msg, __traits(getOverloads, mixin(__MODULE__), "foo"));
// note: if you swap the order of the declarations above, it will
// actually show one foo in the message
}
--
More information about the Digitalmars-d-bugs
mailing list