https://issues.dlang.org/show_bug.cgi?id=23551
Issue ID: 23551
Summary: Error messages for use of array literals in @nogc code
should be improved`
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
```
enum x = [1,4];
@nogc void main()
{
// Easy case
// int[] x = [1,2,3,4];
auto b = x[0..1];
}
```
--
