summaryrefslogtreecommitdiff
path: root/tests/typ/bugs/int-constructor.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-25 12:50:11 +0100
committerGitHub <noreply@github.com>2024-02-25 11:50:11 +0000
commitca5d682edb1553cd73c581a1726537e6415fe848 (patch)
treef6914bb9727bd533543136d482baba21b0b3fc0f /tests/typ/bugs/int-constructor.typ
parent010da18d997eda16b894ec8be41f3e3d84e0ccd7 (diff)
Fix cast order for `ToInt` (#3485)
Diffstat (limited to 'tests/typ/bugs/int-constructor.typ')
-rw-r--r--tests/typ/bugs/int-constructor.typ7
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)