cannot cast

Jesse Phillips jessekphillips+D at gmail.com
Sun Apr 29 07:40:54 PDT 2012


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


More information about the Digitalmars-d-learn mailing list