Array type inference annoyance

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Nov 20 21:55:59 PST 2013


On Thursday, 21 November 2013 at 05:47:54 UTC, H. S. Teoh wrote:
> 	static assert(is(typeof(true ? new Derived1() : (d2ptr =
> 		newDerived2())) == Base));
>
> The necessity of the cast as in the workaround is really ugly, 
> and is a
> fly in my otherwise pleasant D soup currently. :-(
>
>
> T

I think it is this bug: 
http://d.puremagic.com/issues/show_bug.cgi?id=3543


More information about the Digitalmars-d mailing list