[Issue 10271] New: override const message is not helpful

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 4 18:34:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10271

           Summary: override const message is not helpful
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2013-06-04 18:29:03 PDT ---
class A {
    string filename() const { return "1";}
}

class B : A {
    override string filename() { return "2";}
}

void main(){
}

yields

tink.d(6): Error: function tink.B.filename does not override any function, did
you mean to override 'tink.A.filename'?

There should probably be some mention of const in there.

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


More information about the Digitalmars-d-bugs mailing list