[Issue 20437] Transitive immutable/shared does not apply to variables captured by delegates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 7 18:57:18 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20437
--- Comment #1 from Chloé <rightfold+bugzilla+dlang at gmail.com> ---
To clarify, the proposed solution is to disallow the conversion of:
T delegate()
into:
immutable(T delegate())
shared(T delegate())
Just like it is disallowed to convert T[] to immutable(T[]), or T* to
immutable(T*). Similar for shared.
--
More information about the Digitalmars-d-bugs
mailing list