Bug 9827 – Duplicate file on command-line issues a bad diagnostic
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-28T18:48:00Z
Last change time
2016-08-27T23:11:10Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2013-03-28T18:48:35Z
$ dmd test.d test.d
2.062:
> Error: module test from file test.d conflicts with another module test from file
test.d
2.063:
> Error: module test from file test.d must be imported as module 'test'
The error should be:
> Error: file test.d is passed more than once on the command-line
Or perhaps there should be no error and DMD should be smart enough to merge duplicate file paths on the command-line.
Comment #1 by andrej.mitrovich — 2013-03-28T19:09:03Z