aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-22 20:48:40 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit4f308829ad0e81a59971e172284c018cf2bdca3d (patch)
treeeb11a69a471e31aa7be8e46bce6d1b3ded28e056 /tests
parent5df7f92e715ba764ee57f65d78e73111492bb64c (diff)
Add mutex for lhs expr, add error for missing lhs expr for func, struct
TODO: Use mutex in lhs expr and set resolved_type
Diffstat (limited to 'tests')
-rw-r--r--tests/main.amal3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.amal b/tests/main.amal
index 65ac43b..3af537b 100644
--- a/tests/main.amal
+++ b/tests/main.amal
@@ -10,6 +10,7 @@ const main = fn {
}
const value = "hello";
+ // fn {} // error, function declaration can't be by itself. Needs left-hand side
print(value, "world", 356, 13.37);
var num1: i32;
const num2 = 23232;
@@ -20,7 +21,7 @@ const main = fn {
/*
episfjpseifipesf
*/
- //io.puts("lole");
+ io.puts("lole");
}
const print = fn {