7462 – Error message with _error_ in overridden function

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
Add an attachment (proposed patch, testcase, etc.)

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. ***
Comment 2 yebblies 2012年02月10日 04:16:04 UTC
https://github.com/D-Programming-Language/dmd/pull/705 
Comment 3 Walter Bright 2012年02月17日 23:04:50 UTC
https://github.com/D-Programming-Language/dmd/pull/704 


AltStyle によって変換されたページ (->オリジナル) /