[Issue 18106] @nogc: yields a wrong error where @nogc on each definition does not
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 20 13:34:43 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18106
--- Comment #1 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
it's not *technically* incorrect: `@nogc:` affects *all* followind definitions,
including lambdas. thus, in the second case, we actually have `auto __lambda ()
@nogc { new int(5); }`, and compiler complains.
--
More information about the Digitalmars-d-bugs
mailing list