[Issue 7410] New: Wrong error message for selective import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 31 08:36:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7410
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 at puremagic.com
ReportedBy: leandro.lucarella at sociomantic.com
--- Comment #0 from Leandro Lucarella <leandro.lucarella at 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: -------
More information about the Digitalmars-d-bugs
mailing list