https://issues.dlang.org/show_bug.cgi?id=20316 --- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> --- Note that if a variable is declared: int[] a; traits(hasMember) on a works properly. --