[Issue 9058] Problem with std.traits.EnumMembers conversion to array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 22 14:49:50 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9058
--- Comment #1 from bearophile_hugs at eml.cc 2012-11-22 14:49:49 PST ---
> While now this code gives:
>
> import std.traits: EnumMembers;
> enum Foo { A, B }
> void main() {
> EnumMembers[] array = [EnumMembers!Foo];
> }
>
>
> test.d(4): Error: template std.traits.EnumMembers(E) if (is(E == enum)) is used
> as a type
Please ignore this second test case, it's wrong (the array should be Foo[], and
it compiles correctly).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list