cannot cast

Namespace rswhite4 at googlemail.com
Sun Apr 29 07:49:20 PDT 2012


On Sunday, 29 April 2012 at 14:40:55 UTC, Jesse Phillips wrote:
> On Saturday, 28 April 2012 at 14:21:32 UTC, Namespace wrote:
>> I finished my Ref/NotNull struct, but i've got a problem:
>> If i try to cast the class, which should implicit convert to 
>> Ref!(Type) with alias this, i get the following error message:
>> "cannot cast a1.getRef("Ref.d",72u) of type Ref!(A) to type 
>> RefTest.Ref.__unittest1.B"
>
> I would consider this a bug:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=8001

Oh, that could explain a lot. Some workaround until now?


More information about the Digitalmars-d-learn mailing list