https://issues.dlang.org/show_bug.cgi?id=23273
kinke <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from kinke <[email protected]> --- I bet that PR just uncovered another issue, and the relevant questions IMO are: a) Why is there a cast in the 1st place? When removing the `ref`, the `-vcg-ast` output reveals a silly inout pure nothrow @nogc @safe void locate() { inout(Cell)* cell = null; this.getCell(cast(inout(Cell)*)cell); } b) Why aren't the 2 types equivalent, where CastExp.isLvalue() would return true? https://github.com/dlang/dmd/blob/f282f98f7b8cadd4e37fb95c78d3590756f817e7/src/dmd/expression.d#L5389 --
