[Issue 2859] enum convert error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 8 17:05:42 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=2859

--- Comment #5 from Nick Treleaven <nick at geany.org> ---
I think the error is correct according to the spec:

> EnumBaseType types cannot be implicitly cast to an enum type. 

https://dlang.org/spec/enum.html#named_enums

abc.vv (or kkk.vv which resolves to that) is of type abc, so it can't be cast
to type kkk, which t is.

--


More information about the Digitalmars-d-bugs mailing list