https://issues.dlang.org/show_bug.cgi?id=12363
Luca Niccoli <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Luca Niccoli <[email protected]> --- On the same vein: --- struct Template(string String) { alias Alias = String; } pragma(msg, __traits(getProtection, __traits(getMember, Template!"string", "Alias"))); --- Output: --- app.d(4): Error: argument "string" has no protection false --- And a bit different, but related: --- struct Struct{}; struct Template(Type) { private alias Alias = Type; } pragma(msg, __traits(getProtection, __traits(getMember, Template!Struct, "Alias"))); --- Output: --- public --- which does not seem right. Going through getMember makes it impossible to get the protection attribute of member aliases. --
