June 16, 2014 [Issue 12932] New: Support @nogc for immediately iterated array literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12932 Issue ID: 12932 Summary: Support @nogc for immediately iterated array literal Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: k.hara.pg@gmail.com This code should work as expected. void main() @nogc { int sum; foreach (e; [1,2,3]) { sum += e; } assert(sum == 6); } -- |
Copyright © 1999-2021 by the D Language Foundation