July 23 [Issue 24672] New: duplicate renamed import not diagnosed on function-scope | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: qs.il.paperinik@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 } ``` -- |
Copyright © 1999-2021 by the D Language Foundation