http://d.puremagic.com/issues/show_bug.cgi?id=6073
Summary: Cannot pass __traits(parent, ...) as a template parameter if it is a module Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: kenn...@gmail.com --- Comment #0 from kenn...@gmail.com 2011-05-29 03:57:53 PDT --- Test case: -------------- module x; struct S {} template T(M...) { alias int T; } alias T!x V; // ok alias T!(__traits(parent, S)) U; // error -------------- x.d(8): Error: expression module x is not a valid template value argument x.d(8): Error: template instance x.T!(module x) error instantiating -------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------