From d42d2ed200c8f3f167ee09be69fcf86f4b645971 Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Tue, 20 May 2025 18:24:46 +0200 Subject: Error if an unexpected named argument was received (#6192) --- tests/ref/math-call-symbol.png | Bin 0 -> 703 bytes tests/suite/math/call.typ | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/math-call-symbol.png (limited to 'tests') diff --git a/tests/ref/math-call-symbol.png b/tests/ref/math-call-symbol.png new file mode 100644 index 00000000..8308bece Binary files /dev/null and b/tests/ref/math-call-symbol.png differ diff --git a/tests/suite/math/call.typ b/tests/suite/math/call.typ index 5caacfac..54b97ceb 100644 --- a/tests/suite/math/call.typ +++ b/tests/suite/math/call.typ @@ -221,6 +221,15 @@ $ // Hint: 4-6 or if you meant to display this as text, try placing it in quotes: `"ab"` $ 5ab $ +--- math-call-symbol --- +$ phi(x) $ +$ phi(x, y) $ +$ phi(1,2,,3,) $ + +--- math-call-symbol-named-argument --- +// Error: 10-18 unexpected argument: alpha +$ phi(x, alpha: y) $ + --- issue-3774-math-call-empty-2d-args --- $ mat(;,) $ // Add some whitespace/trivia: -- cgit v1.2.3