[Issue 19211] [REG 2.072] cant get the type of a non-const delegate in a const function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 13 09:28:43 UTC 2018


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
I'm not so sure this is a good idea to change this, as changing it could
destabilize the type checking inside the typeof().

(It is erroneous code - the type checking is working as designed.)

The error message is not exactly wrong, though it could be improved. Changed to
enhancement request.

--


More information about the Digitalmars-d-bugs mailing list