dmd
dmd copied to clipboard
Incorrect location for undefined identifier in alias template instantiation
enum plusOne(int x) = x + 1;
struct xyz{}
alias PlusOne =
plusOne
!
xyx;
Outputs:
test.d(4): Error: undefined identifier `xyx`, did you mean struct `xyz`?
plusOne
^
The error should be on line 6, pointing xyx.
- This issue relates to issue #21165