Summary: use spellchecker when override function doesn't
Version: D1 & D2
--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2010-07-26 07:17:49 PDT ---
class Bar : Foo
override void transform()
override.d(8): Error: function override.Bar.transform does not override any
Omitting override gives the equally useless message:
override.d(6): Error: class override.Bar interface function Foo.tranform isn't
I once spent a lot of time to figure out the cause of this error because the
missing 's' is hardly noticeable.
Why doesn't dmd use its spellchecker to help here?
Similar problem is if the name is correct but parameters or other things don't
match. In this case dmd should also suggest something like "did you mean
transform(f) instead of transform(const f)" or whatever.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------