diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-02-25 12:50:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-25 11:50:11 +0000 |
| commit | ca5d682edb1553cd73c581a1726537e6415fe848 (patch) | |
| tree | f6914bb9727bd533543136d482baba21b0b3fc0f /tests/typ/bugs | |
| parent | 010da18d997eda16b894ec8be41f3e3d84e0ccd7 (diff) | |
Fix cast order for `ToInt` (#3485)
Diffstat (limited to 'tests/typ/bugs')
| -rw-r--r-- | tests/typ/bugs/int-constructor.typ | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typ/bugs/int-constructor.typ b/tests/typ/bugs/int-constructor.typ new file mode 100644 index 00000000..0bdce612 --- /dev/null +++ b/tests/typ/bugs/int-constructor.typ @@ -0,0 +1,7 @@ +// Test that integer -> integer conversion doesn't do a roundtrip through float. +// Ref: false + +--- +#let x = 9223372036854775800 +#test(type(x), int) +#test(int(x), x) |
