[Issue 5949] Mutable enum matrix rows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 6 22:17:59 UTC 2020


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

Mathias LANG <pro.mathias.lang at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang at gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from Mathias LANG <pro.mathias.lang at gmail.com> ---
The `enum` gives a literal, so the compiler is correct here.
The code works as expected. Using `[static] immutable` will give the desired
error.

--


More information about the Digitalmars-d-bugs mailing list