Be stricter about function return types
commitaaff2853520d0b53a1963561a3df1dc7e6481369
authorThomas Leonard <talex5@gmail.com>
Sun, 19 Oct 2008 16:51:07 +0000 (19 17:51 +0100)
committerThomas Leonard <talex5@gmail.com>
Sun, 19 Oct 2008 16:55:25 +0000 (19 17:55 +0100)
tree89bdcc11245527e11a80e16bc9370b2b1bb62840
parentdbafe7e89cac14a11eb6cac93bdf42b051494bc8
Be stricter about function return types

If a function is declared as returning "void", don't allow return with an expression.
Main.main must have a return type of void.
dmd2/statement.c