diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-02-25 17:00:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-25 17:00:21 +0100 |
| commit | 4a78a7d082aea2477411caea628d61b0b75be926 (patch) | |
| tree | ca9ca07f8be4cdb305156c1cb409f55e24c8fb61 /tests | |
| parent | a754be513dd784149006bbbc8596177cdf8aa5ea (diff) | |
Fix false positive for type/str comparison warning (#5957)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/foundations/type.typ | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/suite/foundations/type.typ b/tests/suite/foundations/type.typ index 60f9d0ef..8f3dbea7 100644 --- a/tests/suite/foundations/type.typ +++ b/tests/suite/foundations/type.typ @@ -30,6 +30,8 @@ // Hint: 7-26 compare with the literal type instead // Hint: 7-26 this comparison will always return `false` in future Typst releases #test(type(10) != "float", true) +// This is not a warning. +#test(type(10) in ("any", str, int), true) --- type-string-compatibility-in-array --- // Warning: 7-35 comparing strings with types is deprecated |
