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 --------------
https://github.com/D-Programming-Language/dmd/pull/400
https://github.com/D-Programming-Language/dmd/commit/aa4d6b362bd71b0b38186d3446dc7a95210f345c https://github.com/D-Programming-Language/dmd/commit/b7089c1af1158d7203144d66567462c43f5db261