aboutsummaryrefslogtreecommitdiff
path: root/tests/errors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors')
-rw-r--r--tests/errors/closure_no_lhs.amal1
-rw-r--r--tests/errors/duplicate_declaration.amal2
-rw-r--r--tests/errors/pub_in_closure.amal3
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/errors/closure_no_lhs.amal b/tests/errors/closure_no_lhs.amal
new file mode 100644
index 0000000..d903c3c
--- /dev/null
+++ b/tests/errors/closure_no_lhs.amal
@@ -0,0 +1 @@
+fn {} \ No newline at end of file
diff --git a/tests/errors/duplicate_declaration.amal b/tests/errors/duplicate_declaration.amal
new file mode 100644
index 0000000..a97b507
--- /dev/null
+++ b/tests/errors/duplicate_declaration.amal
@@ -0,0 +1,2 @@
+const main = fn {}
+const main = fn {} \ No newline at end of file
diff --git a/tests/errors/pub_in_closure.amal b/tests/errors/pub_in_closure.amal
new file mode 100644
index 0000000..881bbd4
--- /dev/null
+++ b/tests/errors/pub_in_closure.amal
@@ -0,0 +1,3 @@
+const main = fn {
+ pub const num = 45;
+} \ No newline at end of file