www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10479] New: cannot pass implicitly to base class casted result to out contract by ref

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

           Summary: cannot pass implicitly to base class casted result to
                    out contract by ref
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: henning still-hidden.de


--- Comment #0 from Henning Pohl <henning still-hidden.de> 2013-06-26 10:31:03
PDT ---
class B {
    B foo()
    out { } body {
        return null;
    }
}

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

-----
main.d(9): Error: cast(const(B))__result is not an lvalue
-----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10479


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-06-26 10:58:49
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2261

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10479



--- Comment #2 from github-bugzilla puremagic.com 2013-06-28 04:50:02 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/803aee467649db32f97d214861637a957144336d
fix issue 10479 - cannot pass implicitly to base class casted result to
out contract by ref

https://github.com/D-Programming-Language/dmd/commit/35c05f25c5a6edf5f4e9877912d6a168d75adece
Merge pull request #2261 from hpohl/10479

fix issue 10479 - cannot pass implicitly to base class casted result to out
contract by ref

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10479


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10479


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |epi atari8.info


--- Comment #3 from Kenji Hara <k.hara.pg gmail.com> 2013-07-18 01:41:09 PDT ---
*** Issue 9340 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 18 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10479


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathias.baumann sociomantic
                   |                            |.com


--- Comment #4 from Henning Pohl <henning still-hidden.de> 2013-07-25 07:11:00
PDT ---
*** Issue 6058 has been marked as a duplicate of this issue. ***

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