https://issues.dlang.org/show_bug.cgi?id=20316
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from RazvanN <[email protected]> --- The problem here is that (int[]).length is not a valid D construction: static assert(__traits(compiles, (int[]).length)); will fail, therefore traits(hasMember) returns false. length, ptr and capacity were thought to work solely on expressions, not on types (it doesn't make sense to get the pointer of a type) so I'm a bit confused of what the compiler should do here. sizeof and alignof work because there are type properties. --
