https://issues.dlang.org/show_bug.cgi?id=20316
Walter Bright <bugzi...@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #6 from Walter Bright <bugzi...@digitalmars.com> --- > traits(hasMember) on a works properly. Meaning: int[] array; pragma(msg, __traits(hasMember, array, "length")); // true pragma(msg, __traits(hasMember, array, "ptr")); // true pragma(msg, __traits(hasMember, array, "capacity")); // true pragma(msg, __traits(hasMember, array, "sizeof")); // true pragma(msg, __traits(hasMember, array, "alignof")); // true Gaahhh. It's probably far too late to change this behavior now. Marking as WONTFIX. --