Add some tests and errors for bad void usage.

This commit is contained in:
David Anderson
2014-07-04 17:14:40 -07:00
parent dfa9a8f134
commit 1c41f905f9
4 changed files with 44 additions and 1 deletions
@@ -0,0 +1,13 @@
void[] Bad1()
{
}
void Bad2;
stock Bad3(void x)
{
}
public main()
{
}
@@ -0,0 +1,3 @@
(1) : error 145: invalid type expression
(5) : error 144: void cannot be used as a variable type
(7) : error 144: void cannot be used as a variable type