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
bearophile via Digitalmars-d Thu, 17 Jul 2014 10:21:28 -0700
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