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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 23 00:35:34 PDT 2013


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



--- Comment #1 from thelastmammoth at 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: -------


More information about the Digitalmars-d-bugs mailing list