Thread overview
[Issue 18545] Casting away const with cast() triggers alias this, but returns the supertype anyway
Aug 21, 2018
FeepingCreature
Jan 08, 2019
FeepingCreature
Mar 29, 2019
FeepingCreature
August 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18545

--- Comment #1 from FeepingCreature <default_357-line@yahoo.de> ---
It turns out what's happening here is that cast() constNullable is equivalent
to Nullable(constNullable)... which implicitly casts to constNullable.get.

alias get this strikes again!

Nullable should maybe have a copy constructor from const?

--
January 08, 2019
https://issues.dlang.org/show_bug.cgi?id=18545

--- Comment #2 from FeepingCreature <default_357-line@yahoo.de> ---
Fix attempt: https://github.com/dlang/dmd/pull/9223

--
March 29, 2019
https://issues.dlang.org/show_bug.cgi?id=18545

FeepingCreature <default_357-line@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--