Spell checking errors can be hilarious

Iain Buclaw ibuclaw at gdcproject.org
Tue Oct 13 08:04:01 UTC 2020


On Monday, 12 October 2020 at 13:24:17 UTC, Steven Schveighoffer 
wrote:
> Try this in a D file:
>
> foo[] foos;
>
> And you get an error like:
>
> Error: undefined identifier foo, did you mean variable foos?
>
> I know why this happens, is there a way to get it not to 
> happen? Some of these can actually be really puzzling. I've 
> seen stuff like "no identifier foo.bar, did you mean foo.bar?"
>
> -Steve

I suspect this old bug report is related, and there's an 
explanation for what would have to change in order to fix it.

https://issues.dlang.org/show_bug.cgi?id=5621


More information about the Digitalmars-d mailing list