[Issue 23551] New: Error messages for use of array literals in @nogc code should be improved`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 12 18:23:56 UTC 2022
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: nobody at puremagic.com
Reporter: maxhaton at gmail.com
```
enum x = [1,4];
@nogc void main()
{
// Easy case
// int[] x = [1,2,3,4];
auto b = x[0..1];
}
```
--
More information about the Digitalmars-d-bugs
mailing list