[Issue 5621] New: speller.c: enhancement request

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 20 08:32:31 PST 2011


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

           Summary: speller.c: enhancement request
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ibuclaw at ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-02-20 08:29:52 PST ---
The current implementation of the spell checker (as far as I can tell) always
finds the nearest match to the incorrectly spelled symbol.

So the following example:

struct S2 {}
struct S10 {}

void main()
{
    S10 a = S();
}


Will emit the error:
spell.d(6): Error: undefined identifier S, did you mean struct S2?


Whereas it would be an improvement in these cases if it were to suggest the lhs
type instead.

Regards

-- 
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