Bug 24672 – duplicate renamed import not diagnosed on function-scope

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-07-23T11:08:23Z
Last change time
2024-12-13T19:36:34Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#20490 →

Comments

Comment #0 by qs.il.paperinik — 2024-07-23T11:08:23Z
```d import x = std.stdio; import x = std.file; // Error: import `y` conflicts with import `y` void main() { import y = std.stdio; import y = std.file; // Bad: no error, but should be } ```
Comment #1 by robert.schadek — 2024-12-13T19:36:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20490 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB