[Issue 11330] New: Directory named as imported module should not stop module search
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 23 07:47:55 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11330
Summary: Directory named as imported module should not stop
module search
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-10-23 17:47:53 EEST ---
This is a regression that appears to be caused by implementation of DIP37.
Directory structure:
├───b
│ (empty directory)
└───src
a.d - contains "import b;"
b.d - empty file
Command line:
dmd -c -Isrc src/a
DMD 2.063.2 succeeds.
DMD from git complains:
src\a.d(1): Error: importing package 'b' requires a 'package.d' file which
cannot be found in 'b\package.d'
DMD shouldn't stop searching for a b.d or b\package.d just because it finds a
"b" directory first.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list