www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16322] New: Improve error message for missing module

https://issues.dlang.org/show_bug.cgi?id=16322

          Issue ID: 16322
           Summary: Improve error message for missing module declaration
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: iamthewilsonator hotmail.com

if a file in a structed directory a/b/c/d.d has no module declaration and is
imported as `import a.b.c.d` the error message is 

module d from file a/b/c/d.d must be imported with 'import d;' 
importing as `import d;` will also fail if (very likely) a/b/c/d is not in the
import path.

Issue a warning that no module declaration is present, indicating that may be
the cause.

--
Jul 26 2016