Improve error messaging.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user