A valid function with no return type?

Max Haughton maxhaton at gmail.com
Thu Sep 24 21:26:30 UTC 2020



ref foo() {}

void main()
     import std.traits;
     pragma(msg, ReturnType!foo);

Assuming this is supposed to be allowed by the standard, 
replacing void with ref (i.e. ref main { ) does not compile which 
suggests something isn't right.

More information about the Digitalmars-d mailing list