On Tuesday, 28 January 2020 at 19:26:03 UTC, uranuz wrote:
Hello! I have a question about `alias` template parameter and
getOverloads.
For instance I have some code like this:
// -----
import std;
import core.thread;
void foo(string param1) {}
void foo(string param1, int param2) {}
template Bar(alias Func)
{
// Next line is not valid now. This is my understanding of
how I wish it would work...
pragma(msg, __traits(getOverloads, Func));
}
__traits(getOverloads, __traits(parent, Func),
__traits(identifier, Func))