June 09, 2015 [Issue 5949] Mutable enum matrix rows | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5949 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 -- | ||||
September 06, 2020 [Issue 5949] Mutable enum matrix rows | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5949 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pro.mathias.lang@gmail.com Resolution|--- |INVALID --- Comment #2 from Mathias LANG <pro.mathias.lang@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. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply