summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMarmare314 <49279081+Marmare314@users.noreply.github.com>2023-04-28 18:49:21 +0200
committerGitHub <noreply@github.com>2023-04-28 18:49:21 +0200
commit8fa1af8ac85a9f5395b53139ac6bcc299d95f347 (patch)
treeb6eeaeef0870a5f8d2e4b6c5766d043e0e9a305f /tests/typ
parent0d8c3254b75e6493ecf8efc46c37d049c1ae6b63 (diff)
check index on placeholder (#1005)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/let.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/compiler/let.typ b/tests/typ/compiler/let.typ
index 7081bcf0..d9940a8c 100644
--- a/tests/typ/compiler/let.typ
+++ b/tests/typ/compiler/let.typ
@@ -178,6 +178,12 @@ Three
#test(a, 1)
---
+// Trailing placeholders.
+// Error: 10-11 not enough elements to destructure
+#let (a, _, _, _, _) = (1,)
+#test(a, 1)
+
+---
// Error: 10-13 expected identifier, found string
// Error: 18-19 expected identifier, found integer
#let (a: "a", b: 2) = (a: 1, b: 2)