[Issue 11953] New: Uninformative error message on override signature mismatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 19 16:15:49 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11953

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


--- Comment #0 from David Nadlinger <code at 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: -------


More information about the Digitalmars-d-bugs mailing list