www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7410] New: Wrong error message for selective import


           Summary: Wrong error message for selective import
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: leandro.lucarella sociomantic.com

--- Comment #0 from Leandro Lucarella <leandro.lucarella sociomantic.com>
2012-01-31 08:36:54 PST ---
/tmp$ cat -n a.d 
     1    module a;
     2    alias int type;
/tmp$ cat -n b.d 
     1    module b;
     2    private import a;
/tmp$ cat -n c.d 
     1    module c;
     2    private import b : type;
     3    type x;
/tmp$ dmd -c c.d
c.d(3): Error: undefined identifier type

The error should be reported at line 2 saying that the symbol type is private
to module b or something like that.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2012