www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3038] New: overrides but is not covariant with error

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3038

           Summary: overrides but is not covariant with error
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tim.matthews7 gmail.com


Created an attachment (id=386)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=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()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 29 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3038


Gide Nwawudu <gide nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |340




--- Comment #1 from Gide Nwawudu <gide nwawudu.com>  2009-05-29 23:36:23 PDT ---
Looks like a forward reference issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 29 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3038


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


--- Comment #2 from yebblies <yebblies gmail.com> 2011-06-10 10:11:56 PDT ---
The attached test case now compiles without errors (dmd1.068 & dmd2.053)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2011