[Issue 2452] New: Unimplemented method errors should show function overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 13 16:31:23 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2452
Summary: Unimplemented method errors should show function
overload
Product: D
Version: 1.033
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: fraserofthenight at gmail.com
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...
--
More information about the Digitalmars-d-bugs
mailing list