digitalmars.D.bugs - [Issue 18439] New: Error: cannot use operator ~= in nogc delegate
- d-bugmail puremagic.com (28/28) Feb 14 2018 https://issues.dlang.org/show_bug.cgi?id=18439
https://issues.dlang.org/show_bug.cgi?id=18439 Issue ID: 18439 Summary: Error: cannot use operator ~= in nogc delegate 'main.test.__lambda1' Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com ```haf --- main.d // nogc: // Error: cannot use operator ~= in nogc delegate 'main.test.__lambda1' nogc // works without the `:` void test(){ int[2] ret; static foreach (i; 0 .. 2) ret[i] = 0; } ``` related but not dup of https://issues.dlang.org/show_bug.cgi?id=18106 Issue 18106 - nogc: yields a wrong error where nogc on each definition does not --
Feb 14 2018