From 25e94092027de702aceb0ac9ae01571253b9ad4f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 10 Dec 2022 17:10:06 +0100 Subject: [PATCH] add error message --- tests/17_err-losing-variable.test | 2 +- tests/18_err-no-type-arg.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/17_err-losing-variable.test b/tests/17_err-losing-variable.test index f74d1f1..0436ae0 100644 --- a/tests/17_err-losing-variable.test +++ b/tests/17_err-losing-variable.test @@ -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. } diff --git a/tests/18_err-no-type-arg.test b/tests/18_err-no-type-arg.test index ea6ea37..a391c2f 100644 --- a/tests/18_err-no-type-arg.test +++ b/tests/18_err-no-type-arg.test @@ -1,3 +1,3 @@ -int main(a) { +int main(a) { # Error on line 1 col 9: Syntax error. return a; }