[Issue 1407] auto type inference on new const(Class)() doesn't infer const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 11 10:54:53 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1407
------- Comment #1 from baryluk at mpi.int.pl 2007-08-11 12:54 -------
Mayby extend type inference to
auto(auto) b = new const(A)();
First auto will expand to storage type, and second to name of class
This will allow to do this:
invariant(auto) b = new const(A)()
and also:
const(auto) b = new A();
--
More information about the Digitalmars-d-bugs
mailing list