[Issue 23908] New: confusing nonexistent import hint on cyclic import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 9 09:55:09 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23908
Issue ID: 23908
Summary: confusing nonexistent import hint on cyclic import
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dkorpel at live.nl
If you have module a, and import something non existent from module b:
```
module a;
import b : nonexistent;
```
```
module b;
import a;
```
The error message is:
```
a.d(3): Error: module `b` import `nonexistent` not found, did you mean alias
`a.nonexistent`?
```
It's suggesting the very alias that the error is about, which obviously won't
work.
--
More information about the Digitalmars-d-bugs
mailing list