Bug 11953 – Uninformative error message on override signature mismatch

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-19T16:15:43Z
Last change time
2023-06-27T20:30:34Z
Assigned to
No Owner
Creator
David Nadlinger

Comments

Comment #0 by code — 2014-01-19T16:15:43Z
Probably a duplicate, but I don't have time to look it up right now: --- interface I { void foo(int, int); } class A : I { override void foo(int); } --- --- test.d(2): Error: function test.A.foo does not override any function, did you mean to override 'test.I.foo'? --- The suggestion should either include parameter types or be left off.
Comment #1 by lio+bugzilla — 2016-05-06T14:40:12Z
Similar to https://issues.dlang.org/show_bug.cgi?id=13867 (same place in code)
Comment #2 by nick — 2023-06-27T20:30:34Z
Was fixed in 2.080.1: Error: function `void onlineapp.A.foo(int)` does not override any function, did you mean to override `void onlineapp.I.foo(int, int)`?