Bug 7462 – Error message with _error_ in overridden function

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-08T06:26:00Z
Last change time
2015-06-09T05:11:45Z
Keywords
diagnostic, pull
Assigned to
yebblies
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2012-02-08T06:26:48Z
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 by yebblies — 2012-02-10T03:29:22Z
*** Issue 7479 has been marked as a duplicate of this issue. ***
Comment #2 by yebblies — 2012-02-10T04:16:04Z
Comment #3 by bugzilla — 2012-02-17T23:04:50Z
Comment #4 by bugzilla — 2012-02-17T23:08:14Z