[Issue 24672] New: duplicate renamed import not diagnosed on function-scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 23 11:08:23 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24672
Issue ID: 24672
Summary: duplicate renamed import not diagnosed on
function-scope
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
```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
}
```
--
More information about the Digitalmars-d-bugs
mailing list