https://issues.dlang.org/show_bug.cgi?id=3573
Vladimir Panteleev <dlang-bugzi...@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from Vladimir Panteleev <dlang-bugzi...@thecybershadow.net> --- (In reply to Michal Minich from comment #0) > 1. it is possible to declare function without specifying return type. > > pure foo () {} > pure foo () {} > pure nothrow foo () {} These are now implied to have an "auto" return type, i.e.: pure foo () {} pure bar () { return 1; } pragma(msg, typeof(foo()).stringof); // prints "void" pragma(msg, typeof(bar()).stringof); // prints "int" --