> else // doesn't compile, member is not accessible error > foreach (type; __traits (getAttributes, mixin(`T.`~member))) > static if (is (type == attribute)) > return true; > return false;
> Maybe its trying to use it inside of __traits that is causing it? Maybe __traits is trying to extract attributes from the mixin expression, before the mixin injection? That looks like a bug to me, no?