Bug 10479 – cannot pass implicitly to base class casted result to out contract by ref

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-26T10:31:00Z
Last change time
2015-07-06T04:53:06Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
henning

Comments

Comment #0 by henning — 2013-06-26T10:31:03Z
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 -----
Comment #1 by henning — 2013-06-26T10:58:49Z
Comment #2 by github-bugzilla — 2013-06-28T04:50:02Z
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
Comment #3 by k.hara.pg — 2013-07-18T01:41:09Z
*** Issue 9340 has been marked as a duplicate of this issue. ***
Comment #4 by henning — 2013-07-25T07:11:00Z
*** Issue 6058 has been marked as a duplicate of this issue. ***
Comment #5 by k.hara.pg — 2015-07-06T04:53:06Z
*** Issue 10940 has been marked as a duplicate of this issue. ***