[Issue 9149] Disallow converting delegates to const
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed May 25 05:50:25 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=9149
--- Comment #8 from timon.gehr at gmx.ch ---
(In reply to Sobirari Muhomori from comment #6)
> really? https://dpaste.dzfl.pl/ba8fdf6711e3
No, you are right, DMD accepts it even though it is invalid. Not sure why I
claimed otherwise (maybe I accidentally tested with the wrong compiler).
Anyway, void delegate() shouldn't convert to const(void delegate()) implicitly.
--
More information about the Digitalmars-d-bugs
mailing list