Take, for example, this general class:
class Demonstrative:
override def GetHasCode():
return 1
Here, the likely intended override
GetHashCode() is not overriden, but an error is produced about the
GetHasCode() method. In another example, interfaces do not require overrides, so this will also generate a warning/error:
class Illistrative(IDisposable):
override def Dispose():
pass
In both cases, an error is generated, but no suggestion as to fixes are given. Possibly use Cedric's soundex method to suggest the intended override if one exists (perhaps) in first case, and in second case, note that an interface requires the
Dispose() method and give explanation 'If you intended to implement 'IDisposable.Dispose()', remove the override keyword.', or be tolerant to the override keyword in this case.
Landed in rev. 3192