Improve error messaging.

This commit is contained in:
David Anderson
2014-07-03 00:21:18 -07:00
parent ed4cca0225
commit a15153e9b8
5 changed files with 29 additions and 2 deletions
@@ -0,0 +1,15 @@
stock A(int)
{
}
stock B(int[5] N)
{
}
stock C(int:N)
{
}
public main()
{
}
@@ -0,0 +1,3 @@
(1) : error 001: expected token: "-identifier-", but found ")"
(5) : error 140: new-style array types cannot specify dimension sizes as part of their type
(9) : error 001: expected token: "-identifier-", but found ":"
@@ -23,16 +23,22 @@ stock E(E2 t)
{
}
stock F(int n[10]) {
stock F(const int n[10]) {
}
stock G(int& n)
{
}
public main()
{
new x[10]
new t
A(1)
B(x)
C(x)
D(E1:5)
E(E2:5)
F(x)
G(t)
}