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: nob...@puremagic.com
          Reporter: dkor...@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,
];
```

--

Reply via email to