[Issue 2859] enum convert error

2023-08-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2859

--- Comment #5 from Nick Treleaven  ---
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.

--


[Issue 2859] enum convert error

2023-08-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2859

Nick Treleaven  changed:

   What|Removed |Added

 CC||n...@geany.org

--- Comment #4 from Nick Treleaven  ---
> Shouldn't this be an error that kkk does not devine member vv?

It still errors if you replace the last line with:

  t = abc.vv;

(I think because kkk.vv doesn't exist, the compiler looks in the base type to
see if it defines vv.)

--


[Issue 2859] enum convert error

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2859

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 2859] enum convert error

2019-09-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2859

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #3 from RazvanN  ---
Shouldn't this be an error that kkk does not devine member vv? I can't find
anything about this in the spec.

--


[Issue 2859] enum convert error

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2859

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--- Comment #2 from hst...@quickfur.ath.cx ---
Still happens on git HEAD. Verified on git HEAD
(5b468ace36ac8eaa6de215b1e376aece9ccc1084), Linux/64-bit.

--


[Issue 2859] enum convert error

2009-04-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2859





--- Comment #1 from fvbom...@wxs.nl  2009-04-20 01:33 ---
*** Bug 2860 has been marked as a duplicate of this bug. ***


--