aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/tuples_fail_invalid_singleton.sy
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-08 00:15:46 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-08 00:16:13 +0100
commit8e2c0e345facee83d63991dda548b71e6a0c4cf6 (patch)
tree86ead8f6a3329ff1999af49570c44df50ecf7461 /progs/tests/tuples_fail_invalid_singleton.sy
parentdc25e664305ed49edff4e45eaec6ed1fad910c60 (diff)
downloadsylt-8e2c0e345facee83d63991dda548b71e6a0c4cf6.tar.gz
error on '(,)'-tuples
Currently creats a lot of syntax errors. See #100.
Diffstat (limited to 'progs/tests/tuples_fail_invalid_singleton.sy')
-rw-r--r--progs/tests/tuples_fail_invalid_singleton.sy7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/tests/tuples_fail_invalid_singleton.sy b/progs/tests/tuples_fail_invalid_singleton.sy
new file mode 100644
index 0000000..c70fc21
--- /dev/null
+++ b/progs/tests/tuples_fail_invalid_singleton.sy
@@ -0,0 +1,7 @@
+start :: fn {
+ a := (,)
+ a
+}
+
+//TODO(gu) See #100
+// errors: [ErrorKind::SyntaxError(_, _), ErrorKind::SyntaxError(_, _), ErrorKind::SyntaxError(_, _), ErrorKind::SyntaxError(_, _)]