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/errors | |
parent | 6927b6338b9655974db79c429e6ffc73037ab5e0 (diff) |
Test errors, stop working on error
Diffstat (limited to 'tests/errors')
-rw-r--r-- | tests/errors/closure_no_lhs.amal | 1 | ||||
-rw-r--r-- | tests/errors/duplicate_declaration.amal | 2 | ||||
-rw-r--r-- | tests/errors/pub_in_closure.amal | 3 |
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 |