summaryrefslogtreecommitdiff
path: root/tests/typ/bugs/parameter-pattern.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/bugs/parameter-pattern.typ')
-rw-r--r--tests/typ/bugs/parameter-pattern.typ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/typ/bugs/parameter-pattern.typ b/tests/typ/bugs/parameter-pattern.typ
new file mode 100644
index 00000000..31b07f2c
--- /dev/null
+++ b/tests/typ/bugs/parameter-pattern.typ
@@ -0,0 +1,5 @@
+// Test that underscore works in parameter patterns.
+// Ref: false
+
+---
+#test((1, 2, 3).zip((1, 2, 3)).map(((_, x)) => x), (1, 2, 3))