/tmp$ cat -n a.d 1 module a; 2 alias int type; /tmp$ cat -n b.d 1 module b; 2 private import a; /tmp$ cat -n c.d 1 module c; 2 private import b : type; 3 type x; /tmp$ dmd -c c.d c.d(3): Error: undefined identifier type The error should be reported at line 2 saying that the symbol type is private to module b or something like that.
This now compiles without an error, which definitely shouldn't happen!
just seen that this was a d1 bug, Should I bump it to d2 seeing as there's still a problem, or open a new one?
This PR [1] fixes the issue for D2. As D1 is not maintained anymore should we close this? [1] https://github.com/dlang/dmd/pull/7760
As D1 is not maintained and the bug does not manifest in D2, I'm closing this as FIXED.