← Back to index
|
Original Bugzilla link
Bug 9191 – Unhelpful error message on failing override
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-20T14:33:00Z
Last change time
2013-02-05T11:38:38Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
timon.gehr
Comments
Comment #0
by timon.gehr — 2012-12-20T14:33:11Z
DMD 2.060: class C{ void _foo(){} } class D: C{ override void foo(){} } Error: function D.foo does not override any function, did you mean 'D.foo'
Comment #1
by andrej.mitrovich — 2013-01-07T09:25:22Z
https://github.com/D-Programming-Language/dmd/pull/1436
Comment #2
by github-bugzilla — 2013-01-07T09:51:28Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5bcba1f0ff22786d47dacf7f24d9d9231291ef7c
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.
https://github.com/D-Programming-Language/dmd/commit/870bc8690ae4d4898667fbcc572589e842869a32
Merge pull request #1436 from AndrejMitrovic/Fix9191 Issue 9191 - Wrong diagnostic on failing override