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.
Comment #1 by robert.schadek — 2024-12-13T19:09:43Z