[Issue 18439] Error: cannot use operator ~= in @nogc delegate 'main.test.__lambda1'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 7 08:52:03 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=18439
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #9 from Walter Bright <bugzilla at digitalmars.com> ---
For functions, the line is:
sc2.stc &= ~(STC.auto_ | STC.scope_ | STC.static_ | STC.extern_ |
STC.abstract_ | STC.deprecated_ | STC.override_ |
STC.TYPECTOR | STC.final_ | STC.tls | STC.gshared | STC.ref_ |
STC.return_ | STC.property |
STC.nothrow_ | STC.pure_ | STC.safe | STC.trusted | STC.system);
https://github.com/dlang/dmd/blob/master/src/dmd/semantic3.d#L316
Interestingly, @nogc does flow through here.
--
More information about the Digitalmars-d-bugs
mailing list