diff options
| author | Yip Coekjan <69834864+Coekjan@users.noreply.github.com> | 2024-06-22 17:02:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 09:02:53 +0000 |
| commit | 0fbec820355f9f61161b56dc7b757e8a2f5aef4f (patch) | |
| tree | dc5fcfa8fa04eeebc8f61a33fbf2698096f70973 /tests/suite/scripting | |
| parent | 49f1c85c18c847ec2c4e6f5d9fbf13fb84f34f9a (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.typ | 7 |
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 |
