Bug 2452 – Unimplemented method errors should show function overload
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-11-13T18:31:00Z
Last change time
2015-06-09T05:11:49Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
fraserofthenight
Comments
Comment #0 by fraserofthenight — 2008-11-13T18:31:22Z
If an interface method is not implemented in a class that implements the interface, the arguments the method takes should be shown. For example, if you have:
interface IAstVisitor {
void visit(VarDeclaration node);
void visit(FuncDeclaration node);
}
class AstPrinter : IAstVisitor {
void visit(VarDeclaration node) { ... }
}
The current error message reads:
class AstPrinter interface function IAstVisitor.visit isn't implemented
It should read:
class AstPrinter interface function IAstVisitor.visit(FuncDeclaration) isn't implemented
When you have 80 methods named "visit", telling them apart, figuring out exactly which one isn't implemented gets a bit more tricky...
Comment #1 by alienballance — 2011-05-20T07:56:31Z
I'd like to see this in D2 as well.
Comment #2 by andrej.mitrovich — 2013-01-20T12:12:14Z