diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-31 13:44:27 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 6a9466da5377d0bc73c7e5aa48deca3740d3de6f (patch) | |
tree | 87f4630f72fe77d037fe19d17bdc00618929f678 /tests/main.amal | |
parent | 6927b6338b9655974db79c429e6ffc73037ab5e0 (diff) |
Test errors, stop working on error
Diffstat (limited to 'tests/main.amal')
-rw-r--r-- | tests/main.amal | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/main.amal b/tests/main.amal index f778a14..ae37816 100644 --- a/tests/main.amal +++ b/tests/main.amal @@ -10,15 +10,12 @@ 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: i64; const num2 = 23232; const num3 = num1 + num2 * 30; //const num4 = (num1 + num2) * num3 * ((34 + 32) / 234.345); const num4 = (num1 + num2) * num3 * ((34 + 32) / 2); - // pub cost num34 = 45; // error, only declarations in global scope can be public - //const num4 = 23; // error, variable redeclaration /* episfjpseifipesf */ |