Fixes Issue 9191 - Wrong diagnostic on failing override.

For failing overrides the compiler should look for similar symbols in the
base classes and interfaces, and not the current class.
Merge pull request #1436 from AndrejMitrovic/Fix9191

Issue 9191 - Wrong diagnostic on failing override