[Issue 4855] New: When a class has private override member function, the function requires no return value type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 12 07:10:05 PDT 2010


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

           Summary: When a class has private override member function, the
                    function requires no return value type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: rayerd.wiz at gmail.com


--- Comment #0 from Haruki Shigemori <rayerd.wiz at gmail.com> 2010-09-12 07:09:36 PDT ---
import std.stdio;
class Base
{
        int f() {return 0;}
}
class Derived : Base
{
        private override /+int+/ f() {return 1;} // accepts-invalid
}

void main()
{
}

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