[Issue 10971] assigning derived class to base should not trigger promotion of result

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 5 10:17:44 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10971



--- Comment #4 from monarchdodra at gmail.com 2013-09-05 10:17:41 PDT ---
(In reply to comment #3)
> In C in assignment chaining type of expression is defined to be the type of
> leftmost operand. I don't think you EH is a good reason to break it.

C doesn't have inheritance.

And I don't want to change that behavior.

I want the compiler to know that making an implicit downcast would be legal in
this situation.

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


More information about the Digitalmars-d-bugs mailing list