Bug 3038 – overrides but is not covariant with error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-05-29T22:46:00Z
Last change time
2015-06-09T01:27:59Z
Keywords
rejects-valid
Assigned to
nobody
Creator
tim.matthews7
Blocks
340

Attachments

IDFilenameSummaryContent-TypeSize
386test.dtest.dtext/plain258

Comments

Comment #0 by tim.matthews7 — 2009-05-29T22:46:53Z
Created attachment 386 test.d The file test.d attached causes the error: test.d(14): Error: function test.BO.getThing of type B() overrides but is not covariant with test.AO.getThing of type A()
Comment #1 by gide — 2009-05-29T23:36:23Z
Looks like a forward reference issue.
Comment #2 by yebblies — 2011-06-10T10:11:56Z
The attached test case now compiles without errors (dmd1.068 & dmd2.053)