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

Duncan Paterson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Duncan Paterson <[email protected]> ---
I don't think this is an oversight. The table at
https://dlang.org/spec/const3.html in section 18.11 says that shared cannot be
implicitly converted to mutable. The same code as yours with b marked immutable
works. I do think this behaviour is a little surprising.

--

Reply via email to