From ad901c2cdbcb421355f5ecef5dc86c14de293c9a Mon Sep 17 00:00:00 2001 From: Heinenen <37484430+Heinenen@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:52:56 +0100 Subject: Syntax error if function name is parenthesized (#3058) Co-authored-by: Laurenz --- tests/typ/compiler/let.typ | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3