[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 15:39:07 UTC 2017


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

--- Comment #3 from Eyal <eyal at weka.io> ---
It does not affect other kinds of nested scopes.

For example, this does compile:

auto ignoreDlg(void function() dlg) {}
@nogc: struct S { void foo() { ignoreDlg(() { new int(5); }); } }

--


More information about the Digitalmars-d-bugs mailing list