auto box = Box!int(); auto item = cast(Item)box; auto box2 = cast(typeof(box));
One more way, not necessarily a workaround but a little trick
that doesn't require you to know the exact type of box, is to use
typeof(box).
- casts / wildcards for parametrized types tx
- Re: casts / wildcards for parametrized types Ali Çehreli
- Re: casts / wildcards for parametrized types Meta
- Re: casts / wildcards for parametrized types tx
- Re: casts / wildcards for parametrized types Ali Çehreli