add error messages
This commit is contained in:
parent
c0c8880c56
commit
db59e6d084
3 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
void test () {
|
void test () { # Error on line 0 col -1: No main function.
|
||||||
bool a = false;
|
bool a = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@ int foo (int a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void main () {
|
void main () {
|
||||||
foo(13, 12);
|
foo(13, 12); # Error on line 6 col 8: Expected 1 arguments but given 2.
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@ int foo (int a, int b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void main () {
|
void main () {
|
||||||
foo(42);
|
foo(42); # Error on line 6 col 8: Expected 2 arguments but given 1.
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue