From 0fbec820355f9f61161b56dc7b757e8a2f5aef4f Mon Sep 17 00:00:00 2001 From: Yip Coekjan <69834864+Coekjan@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:02:53 +0800 Subject: Hint for shadowed std functions (#4402) Co-authored-by: Laurenz --- tests/suite/scripting/call.typ | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/suite') diff --git a/tests/suite/scripting/call.typ b/tests/suite/scripting/call.typ index 34344608..5a5fb326 100644 --- a/tests/suite/scripting/call.typ +++ b/tests/suite/scripting/call.typ @@ -49,6 +49,13 @@ // Error: 2-3 expected function, found string #x() +--- call-shadowed-builtin-function --- +#let image = "image" + +// Error: 2-7 expected function, found string +// Hint: 2-7 use `std.image` to access the shadowed standard library function +#image("image") + --- call-bad-type-int-expr --- #let f(x) = x -- cgit v1.2.3