[Issue 23465] New: Invalid token error points to wrong line

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 6 13:32:57 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23465

          Issue ID: 23465
           Summary: Invalid token error points to wrong line
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dkorpel at live.nl

I had a big array literal with accidentally an invalid token in the middle of
it, but the error message points to the start of the array literal `[`, which
makes it hard to find.

```
int[] arr = 
[         // error points to here
    0,
    1,
    2,
    3,\   // actual error here
    5,
];
```

--


More information about the Digitalmars-d-bugs mailing list