www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is there some trait like getOverloads that works with mixin templates?

a simple example:

mixin template v1()
     void foo(){}

mixin template v2()
     void foo(int){}

class Test
     mixin v1;
     mixin v2;

void main()
     __traits(getOverloads, Test, "foo").length.writeln; // 0

i know you can use alias to manually make them visible for 
but i could use a automated way, at least for unnamed template 
or to be able to merge all into the same named mixin scope.

is there a way to do this?
Nov 26 2016