summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorHeinenen <37484430+Heinenen@users.noreply.github.com>2024-01-16 09:52:56 +0100
committerGitHub <noreply@github.com>2024-01-16 08:52:56 +0000
commitad901c2cdbcb421355f5ecef5dc86c14de293c9a (patch)
tree142a718b23e2af153a3ceca0b43dc48108bdcb69 /tests/typ/compiler
parentf57c34a7ce7bd09d7c2f2d19f37645ad30493afd (diff)
Syntax error if function name is parenthesized (#3058)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/let.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typ/compiler/let.typ b/tests/typ/compiler/let.typ
index accd9d04..06f07394 100644
--- a/tests/typ/compiler/let.typ
+++ b/tests/typ/compiler/let.typ
@@ -275,3 +275,10 @@ Three
// Error: 15 expected expression
#let func(x) =
+---
+// Error: 12 expected equals sign
+#let (func)(x)
+---
+// Error: 12 expected equals sign
+// Error: 15-15 expected semicolon or line break
+#let (func)(x) = 3