[Issue 24265] ref delegate no longer implicitly converts to unannotated type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 29 02:09:44 UTC 2023


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

Paul Backus <snarwin+bugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |snarwin+bugzilla at gmail.com

--- Comment #1 from Paul Backus <snarwin+bugzilla at gmail.com> ---
Introduced by DMD PR 14142:

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

Looks like maybe this isn't a behavioral bug, but a bad error message: the
actual problem is that `ref int delegate() return` does not convert to `ref int
delegate()`, but the compiler does not print the `return` attribute when
printing the delegate's type.

--


More information about the Digitalmars-d-bugs mailing list