https://issues.dlang.org/show_bug.cgi?id=20975
Issue ID: 20975 Summary: Symbol conflict error message refers to aliased symbol instead of the alias when imported Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: elpenguin...@gmail.com test.d: ``` import bar; import foo; void main() { int a = x; } ``` bar.d: ``` int a; alias x = a; ``` foo.d: ``` int a; alias x = a; ``` Currently, this produces `Error: variable `bar.a` at bar.d(1) conflicts with variable `foo.a` at foo.d(1)`. It should refer to foo.x and bar.x instead, since they're the real conflict. This seems to be similar to issue 4917. --