On 25/11/13 10:13, Andrea Fontana wrote: > auto bar() { return cast(const int) 10; } > > writeln(typeid(bar())); Yup, I should have added that I would prefer to avoid a cast in the return statement :-) Thanks anyway!