summaryrefslogtreecommitdiff
path: root/tests/suite/scripting
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-06-22 17:02:53 +0800
committerGitHub <noreply@github.com>2024-06-22 09:02:53 +0000
commit0fbec820355f9f61161b56dc7b757e8a2f5aef4f (patch)
treedc5fcfa8fa04eeebc8f61a33fbf2698096f70973 /tests/suite/scripting
parent49f1c85c18c847ec2c4e6f5d9fbf13fb84f34f9a (diff)
Hint for shadowed std functions (#4402)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite/scripting')
-rw-r--r--tests/suite/scripting/call.typ7
1 files changed, 7 insertions, 0 deletions
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