add error message

This commit is contained in:
Mylloon 2022-12-10 17:10:06 +01:00
parent c8ba7704e4
commit 25e9409202
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -3,5 +3,5 @@ int foo(int a) {
}
void main() {
void b = foo(1);
void b = foo(1); # Error on line 6 col 17: Expected int but given void.
}

View file

@ -1,3 +1,3 @@
int main(a) {
int main(a) { # Error on line 1 col 9: Syntax error.
return a;
}