www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11953] New: Uninformative error message on override signature mismatch


           Summary: Uninformative error message on override signature
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code klickverbot.at

--- Comment #0 from David Nadlinger <code klickverbot.at> 2014-01-19 16:15:43
PST ---
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.

Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2014