Bug 8567 – isDynamicArrray!S == true for S with alias this to array
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-20T08:40:00Z
Last change time
2013-02-05T17:48:56Z
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0 by dsimcha — 2012-08-20T08:40:26Z
import std.traits;
struct S {
string name() @property { assert(0); }
alias name this;
}
static assert(!isDynamicArray!S); // Fails
The same issue probably applies to several other std.traits members.
Comment #1 by maximzms — 2013-02-05T08:04:06Z
Works with both DMD 2.061 and DMD+phobos from Git head.