On Thursday, 17 July 2014 at 17:15:54 UTC, bearophile wrote:
interface IBase {}
class Impl(T): IBase {
   T value;
}
void main() {
   IBase a = true ? (new Impl!uint) : (new Impl!string);
}

I have added a note:
https://issues.dlang.org/show_bug.cgi?id=3543

Bye,
bearophile

OK. Thanks. Using casts everywhere for such case us quite annoying. I've tested it for plain array it doesn't work too. However issue is marked as solved for it.

Reply via email to