Bug 23685 – Confusing error with mutual imports

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-02-11T10:30:58Z
Last change time
2024-12-13T19:27:13Z
Assigned to
No Owner
Creator
John Colvin
Moved to GitHub: dmd#20229 →

Comments

Comment #0 by john.loughran.colvin — 2023-02-11T10:30:58Z
$ cat a.d import b : bSym; $ cat b.d import a; $ dmd -o- a.d a.d(1): Error: module `b` import `bSym` not found, did you mean alias `a.bSym`? This is one of those "wtf" moments for users. What alias? I reckon it's because of the implementation of selective import lowering to aliases, but that's an internal detail that shouldn't be leaking to users.
Comment #1 by robert.schadek — 2024-12-13T19:27:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20229 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB