add error messages

This commit is contained in:
Mylloon 2022-12-10 16:13:22 +01:00
parent c0c8880c56
commit db59e6d084
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
void test () {
void test () { # Error on line 0 col -1: No main function.
bool a = false;
}

View file

@ -3,5 +3,5 @@ int foo (int a) {
}
void main () {
foo(13, 12);
foo(13, 12); # Error on line 6 col 8: Expected 1 arguments but given 2.
}

View file

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