From 4f308829ad0e81a59971e172284c018cf2bdca3d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 22 Mar 2019 20:48:40 +0100 Subject: Add mutex for lhs expr, add error for missing lhs expr for func, struct TODO: Use mutex in lhs expr and set resolved_type --- tests/main.amal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/main.amal') 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 { -- cgit v1.2.3