[Issue 7462] New: Error message with _error_ in overridden function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 8 06:26:50 PST 2012


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

           Summary: Error message with _error_ in overridden function
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-02-08 06:26:48 PST ---
class A
{
   void foo(){}
}

class B : A
{
   garbage foo() {}
}
----
bug.d(9): Error: undefined identifier garbage
bug.d(9): Error: function bug.B.foo of type _error_() overrides but is not
covariant with bug.A.foo of type void()

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