https://issues.dlang.org/show_bug.cgi?id=3543

--- Comment #15 from [email protected] ---
The same problem found by "Uranuz":
http://forum.dlang.org/thread/[email protected]


interface IBase {}
class Impl(T): IBase {
    T value;
}
void main() {
    IBase a = true ? (new Impl!uint) : (new Impl!string);
}



test.d(6,23): Error: cannot implicitly convert expression (new 
Impl!uint) of type object.Object to test.IBase

--

Reply via email to