Error: cannot return non-void from void function

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 27 05:06:52 PST 2014


auto parseConfig()
{
	
auto lines = File(txtlinks, "r").byLine;
	return lines;
}

Error: cannot return non-void from void function

I can't understand the reasons of the error;

Can I return auto from function?


More information about the Digitalmars-d-learn mailing list