[Issue 19363] Manifest constant delegates are mutable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 5 00:01:53 UTC 2018


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

--- Comment #1 from lngns <contact at lngnslnvsk.net> ---
Actually, `const u = &(new C().foo);` fails even if C.foo does not mutate its
object and is annotated const.
So I would suggest failing only for non-const methods, though that may be a
bigger change.

--


More information about the Digitalmars-d-bugs mailing list