Thread overview
[Issue 5554] New: [qtd] Covariance detection failure
Feb 09, 2011
Max Samukha
Feb 20, 2012
yebblies
Feb 21, 2012
Walter Bright
February 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5554

           Summary: [qtd] Covariance detection failure
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: samukha@voliacable.com


--- Comment #0 from Max Samukha <samukha@voliacable.com> 2011-02-09 01:44:07 PST ---
class MA
{
}

class MB : MA
{
}

class MC : MB
{
}

class A
{
    MA foo() { return null; }
}

interface I
{
    MB foo();
}

class B : A
{
    override MC foo() { return null; }
}

class C : B, I
{
    override MC foo() { return null; }
}

void main()
{
}

----
Error: function test.C.foo incompatible covariant types MA() and MB()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5554


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
                 CC|                            |yebblies@gmail.com
           Platform|Other                       |All
         AssignedTo|nobody@puremagic.com        |yebblies@gmail.com
         OS/Version|Linux                       |All


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-20 22:18:50 EST ---
https://github.com/D-Programming-Language/dmd/pull/746

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5554



--- Comment #2 from github-bugzilla@puremagic.com 2012-02-20 22:06:00 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/027fdbc892d7d2bd89e1d1b88accb53ca733f8de Merge pull request #746 from yebblies/issue5554

Issue 5554 - [qtd] Covariance detection failure

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5554



--- Comment #3 from github-bugzilla@puremagic.com 2012-02-20 23:09:07 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/0c46d6921050907fe413244cbe71cfa7b93135a2 fix Issue 5554 - [qtd] Covariance detection failure

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5554


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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