[Issue 18439] New: Error: cannot use operator ~= in @nogc delegate 'main.test.__lambda1'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 15 03:45:04 UTC 2018
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 at puremagic.com
Reporter: timothee.cour2 at 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
--
More information about the Digitalmars-d-bugs
mailing list