From 8fa1af8ac85a9f5395b53139ac6bcc299d95f347 Mon Sep 17 00:00:00 2001 From: Marmare314 <49279081+Marmare314@users.noreply.github.com> Date: Fri, 28 Apr 2023 18:49:21 +0200 Subject: check index on placeholder (#1005) --- tests/typ/compiler/let.typ | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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 @@ -177,6 +177,12 @@ Three #let (a, ..) = (a: 1, b: 2) #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 -- cgit v1.2.3