adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
530 stars 125 forks source link

var.get!SomeClass() error #318

Open MANKEYYENAME opened 2 years ago

MANKEYYENAME commented 2 years ago

(cast(SomeClass) someVar.get!Object) is works, but someVar.get!SomeClass isn't.

adamdruppe commented 2 years ago

Do you have a more complete example? It works in my test but there's probably some small difference betwen it and your code.