Implicit conversion of struct with methods to immutable in pure function fails
Timoses
timosesu at gmail.com
Mon Jul 16 13:13:53 UTC 2018
On Monday, 16 July 2018 at 12:00:57 UTC, Simen Kjærås wrote:
> On Monday, 16 July 2018 at 11:43:03 UTC, Timoses wrote:
>> Why does this fail?
>
> It doesn't. Not using DMD 2.081.1 under Windows, at least. I
> tried adding a bitfield since you mentioned it, but it compiles
> nicely for me. Which version of DMD are you using, and are you
> having the issues with the exact code you posted here?
>
> --
> Simen
https://run.dlang.io/is/Pgs527
I'm on 2.080.1. But above is on latest 2.081.1 I believe.
Note that the bottom code snippet in the original post does work,
while the first one does not.
More information about the Digitalmars-d-learn
mailing list