Bug 863 – Selectively importing a nonexistent identifier results in spurious and incorrect error message

Status
RESOLVED
Resolution
WORKSFORME
Severity
trivial
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-01-20T15:14:00Z
Last change time
2014-02-15T13:12:55Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-01-20T15:14:27Z
import std.stdio : NONEXISTENT; The above code, when compiled, results in the following two errors, of which the first should probably read "identifier std.stdio.NONEXISTENT" instead of "import NONEXISTENT", and the latter should not even be there. asdf.d(1): import NONEXISTENT not found asdf.d(1): alias asdf.NONEXISTENT recursive alias declaration
Comment #1 by matti.niemenmaa+dbugzilla — 2007-03-23T12:29:45Z
Works in 1.009. I'd still prefer "std.stdio.NONEXISTENT" instead of just "NONEXISTENT", though.