[Issue 21369] Compiler doesn't allow lvalues via alias this when wrapper is an rvalue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 8 15:46:01 UTC 2021


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
The problem is likely the use of `Type.aliasthisOf()` which returns a `Type`,
so for a function this is TypeFunction.nextOf() and as `ref` is not a type
qual, the information is lost and DMD thinks it's a rvalue.

--


More information about the Digitalmars-d-bugs mailing list