[Issue 23234] Delegate literal with inferred return value that requires following alias-this uses class cast instead.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 13 11:16:01 UTC 2022


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

--- Comment #6 from RazvanN <razvan.nitu1305 at gmail.com> ---
Further investigation has shown that this bug report is indeed valid. It turns
out that dmd does tweak the return type for delegates depending on context.
This is surprising for me and maybe this should be documented somewhere.

--


More information about the Digitalmars-d-bugs mailing list