Thread overview | |||||
---|---|---|---|---|---|
|
August 21, 2018 [Issue 18545] Casting away const with cast() triggers alias this, but returns the supertype anyway | ||||
---|---|---|---|---|
| ||||
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 [Issue 18545] Casting away const with cast() triggers alias this, but returns the supertype anyway | ||||
---|---|---|---|---|
| ||||
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 [Issue 18545] Casting away const with cast() triggers alias this, but returns the supertype anyway | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18545 FeepingCreature <default_357-line@yahoo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- |
Copyright © 1999-2021 by the D Language Foundation