www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2452] New: Unimplemented method errors should show function overload

reply d-bugmail puremagic.com writes:

           Summary: Unimplemented method errors should show function
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: fraserofthenight 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

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

When you have 80 methods named "visit", telling them apart, figuring out
exactly which one isn't implemented gets a bit more tricky...

Nov 13 2008
parent d-bugmail puremagic.com writes:

Mariusz Gliwiński <alienballance gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |alienballance gmail.com

--- Comment #1 from Mariusz Gliwiński <alienballance gmail.com> 2011-05-20
07:56:31 PDT ---
I'd like to see this in D2 as well.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 20 2011