[Issue 2069] New: Invalid return type for __traits(derivedMembers, ...) if there are no derived members
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 5 10:54:43 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2069
Summary: Invalid return type for __traits(derivedMembers, ...) if
there are no derived members
Product: D
Version: 2.013
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: samukha at voliacable.com
If the type passed to __traits(derivedMembers, ...) does not have any derived
members, an array of void[0u] type is returned instead of
invariant(char)[][0u];
class C
{
//int x; // uncomment to make it compile
}
static assert (is (typeof(__traits(derivedMembers, C)) : string[]));
--
More information about the Digitalmars-d-bugs
mailing list