add error message
This commit is contained in:
parent
c8ba7704e4
commit
25e9409202
2 changed files with 2 additions and 2 deletions
|
@ -3,5 +3,5 @@ int foo(int a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
void b = foo(1);
|
void b = foo(1); # Error on line 6 col 17: Expected int but given void.
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
int main(a) {
|
int main(a) { # Error on line 1 col 9: Syntax error.
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue