D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7462 - Error message with _error_ in overridden function
Summary: Error message with _error_ in overridden function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: yebblies
URL:
Keywords: diagnostic, pull
: 7479 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-02-08 06:26 UTC by Don
Modified: 2015-06-09 05:11 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2012-02-08 06:26:48 UTC
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()
Comment 1 yebblies 2012-02-10 03:29:22 UTC
*** Issue 7479 has been marked as a duplicate of this issue. ***