http://d.puremagic.com/issues/show_bug.cgi?id=9058



--- Comment #1 from bearophile_h...@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: -------

Reply via email to