[Issue 18945] immutable variable is used as if it's an enum

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 5 16:09:19 UTC 2018


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

--- Comment #9 from David Bennett <davidbennett at bravevision.com> ---
(In reply to David Bennett from comment #8)
> (In reply to David Bennett from comment #7)
> > Then there are immutable struct members used at compile time, they might not
> > be easy to convert to an enum.
> > https://run.dlang.io/is/cfGfxw
> > I've never seen it used like that... but it does work currently.
> 
> Actually, I reduced that last case a bit to much that it would work fine
> even with this change...

Here is the case I was thinking of: https://run.dlang.io/is/zZWdIQ

Only works currently with static immutable, so not sure if it could be a
problem as I think this change would only effect immutable (without static).
sorry for the noise.

--


More information about the Digitalmars-d-bugs mailing list