[Issue 9149] Disallow converting delegates to const
digitalmars-d-bugs at puremagic.com
Wed May 25 05:50:25 PDT 2016
--- 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