Add some tests and errors for bad void usage.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user