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
-----