[Issue 20494] Appending derived class array to an interface array.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 13 22:51:40 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20494

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #4 from Rainer Schuetze <r.sagitario at gmx.de> ---
I think this is an "accepts-invalid" issue: class Bar and interface IFoo are
not the same pointer, an implicit conversion adds an offset. But appending
arrays with implicitly conversion is not supported, just like you cannot append
an array of floats to an array of ints or vice versa.

--


More information about the Digitalmars-d-bugs mailing list