From 6a9466da5377d0bc73c7e5aa48deca3740d3de6f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 Mar 2019 13:44:27 +0200 Subject: Test errors, stop working on error --- tests/errors/closure_no_lhs.amal | 1 + tests/errors/duplicate_declaration.amal | 2 ++ tests/errors/pub_in_closure.amal | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 tests/errors/closure_no_lhs.amal create mode 100644 tests/errors/duplicate_declaration.amal create mode 100644 tests/errors/pub_in_closure.amal (limited to 'tests/errors') 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 -- cgit v1.2.3