http://d.puremagic.com/issues/show_bug.cgi?id=3972


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugd...@yahoo.com.au


--- Comment #1 from Don <clugd...@yahoo.com.au> 2010-03-16 13:58:43 PDT ---
I actually hit this today and got sufficiently irritated to improve the error
message a bit. The 'else' clause should also be improved, it's bug 2059
("Horrible error message"). Perhaps change it to (untested):
error(loc, "has inconsistent naming. It was imported as %s", srcname);


Index: module.c
===================================================================
--- module.c    (revision 416)
+++ module.c    (working copy)
@@ -621,7 +621,10 @@
     if (!dst->insert(this))
     {
     if (md)
-        error(loc, "is in multiple packages %s", md->toChars());
+    {
+        error(loc, "has inconsistent naming.\n"
+        "It was imported as %s but module declaration is %s", srcname,
md->toChars());
+        }
     else
         error(loc, "is in multiple defined");
     }

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

Reply via email to