Type Inference Bug?
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 21 11:06:51 PST 2014
"Meta" wrote in message news:nwskxjncbwqndlkiebwb at forum.dlang.org...
> On Friday, 21 November 2014 at 15:29:05 UTC, Daniel Murphy wrote:
> > but you could enforce exact type with something like
> > if (typeof(i) == shared(U), U) && is(shared(U) == typeof(i))
>
> I'm assuming you meant if (typeof(i): shared(U), U) &&
> is(shared(U): typeof(i))).
Probably.
More information about the Digitalmars-d
mailing list