[Issue 5420] New: Cannot override function error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 6 18:38:05 PST 2011


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

           Summary: Cannot override function error
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: eatingstaples at gmail.com


--- Comment #0 from eatingstaples at gmail.com 2011-01-06 18:35:48 PST ---
Derived classes cannot override functions in base classes, if the base class is
private or package, even if the derived class carries the same attribute.

The compiler issues an error explaining that the function in the derived class
does not, in fact, override a function in the base class.

-- 
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