aboutsummaryrefslogtreecommitdiff
path: root/tests/main.amal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.amal')
-rw-r--r--tests/main.amal3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.amal b/tests/main.amal
index d085501..65ac43b 100644
--- a/tests/main.amal
+++ b/tests/main.amal
@@ -15,7 +15,8 @@ const main = fn {
const num2 = 23232;
const num3 = num1 + num2 * 30;
const num4 = (num1 + num2) * num3 * ((34 + 32) / 234.345);
- //const num4 = 23;
+ // pub cost num34 = 45; // error, only declarations in global scope can be public
+ //const num4 = 23; // error, variable redeclaration
/*
episfjpseifipesf
*/