import std.stdio;
enum abc:int{
vv,cc
}
enum kkk:abc
{
mm = cast(abc)(abc.cc+1)
}
void main()
{
kkk t;
t = kkk.vv; // this should work? instead I get this error message: Error: cannot implicitly convert expression (cast(abc)0) of type abc to kkk
}
Comment #1 by fvbommel — 2009-04-20T01:33:00Z
*** This bug has been marked as a duplicate of 2859 ***