[Issue 10140] confusing error message: X is private; undefined identifier Y, did you mean X

2013-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10140


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #2 from yebblies  2013-08-04 22:07:34 EST ---
And also issue 9644

*** This issue has been marked as a duplicate of issue 5839 ***

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


[Issue 10140] confusing error message: X is private; undefined identifier Y, did you mean X

2013-05-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10140



--- Comment #1 from thelastmamm...@gmail.com 2013-05-23 00:35:33 PDT ---
(In reply to comment #0)
> 
> import std.regex;
> void main(){
> auto c=match(s,``);
> }
> 
> 
> Error: module bug std.regex.IR is private
> bug.d(3): Error: undefined identifier s, did you mean enum IR?

Just to clarify, the bug is that the error message shouldn't even say 'Error:
module bug std.regex.IR is private' (which is very confusing). It should just
say:

Error: undefined identifier s, did you mean enum IR?

The second weird thing is that 's' is far from 'IR'; shouldn't it either
specify other symbols or put a cap on levinstein distance?

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