Skip to content

Incorrect location for undefined identifier in alias template instantiation #21381

@Ay1nDas

Description

@Ay1nDas
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions