Visual D 0.50.0-beta1 released
Rainer Schuetze
r.sagitario at gmx.de
Fri Jul 12 10:06:55 UTC 2019
On 11/07/2019 01:46, Bert wrote:
> The first and last are expandable, seems the middle is not being
> resolved properly:
>
> - arr {length=3 ptr=0x0000028d2cbb60c0}
> inter[]
> + [0] 0x0000028d2cbb3010 {} inter {main.main.s1}
> [1] 0x0000028d2cbb3070 {} inter
> + [2] 0x0000028d2cbb30d0 {} inter {main.main.s3}
>
>
> the 2nd entry is just main.main.s2
>
>
> Maybe you could just generate a large array of interfaces(might try
> nestings, empty, derived classes, etc).
It's a lot easier to reduce a failing test than to guess what might go
wrong, so a test case would be appreciated.
I suspect s2 has a slightly more complicated inheritance tree. The
debugger simulates what happens in _d_toObject
(https://github.com/dlang/druntime/blob/master/src/rt/cast_.d#L25). Does
explicit cast(Object) work on that instance?
More information about the Digitalmars-d-ide
mailing list