Implicit conversion to base interface doesn't work inside initialization of AA of objects
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 17 10:15:53 PDT 2014
> 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
More information about the Digitalmars-d
mailing list