This is a regression of fixing issue 2234. http://d.puremagic.com/issues/show_bug.cgi?id=2234 Reported in newsgroup. http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=144529 > mixin template Members(){ > static int i1; > static int i2; > static int i3; //comment out to make func2 visible > static int i4; //comment out to make func1 visible > } > > class Test { > mixin Members; > > typedef void function() func1; > typedef bool function() func2; > > static void init(){ > foreach(m;__traits(allMembers,Test)){ > pragma(msg,m); > } > } > } > > int main(string[] argv) > { > return 0; > } > > Gives me the output: > i1 > i2 > i3 > i4 > toString > toHash > opCmp > opEquals > Monitor > factory
https://github.com/D-Programming-Language/dmd/pull/385
https://github.com/D-Programming-Language/dmd/commit/aa02f484a6a697727706d7fb13764411322cf05d