On Wednesday, 3 May 2017 at 07:37:31 UTC, Jacob Carlborg wrote:
It might be by accident but I think the compiler is inferring the return type. Just as "auto" is not necessary to infer the type of a variable if there's another attribute:

No accident there, the spec says any storage class will do:
http://dlang.org/spec/function.html#auto-functions

"An auto function is declared without a return type. If it does not already have a storage class, use the auto storage class. "

Reply via email to