summary refs log tree commit diff stats
path: root/tests/arithm
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2022-12-01 20:34:00 +0800
committerGitHub <noreply@github.com>2022-12-01 13:34:00 +0100
commit658b28dc5707601b39d9aad4b6bf79a9afff1e92 (patch)
treeb8e10d4d1f2666c45c3b1dec23e7c03d5ba23be9 /tests/arithm
parenta70d3abd37819e7562f80f0c808788c3f5c62c55 (diff)
downloadNim-658b28dc5707601b39d9aad4b6bf79a9afff1e92.tar.gz
tyInt tyUint fit target int bit width (#20829)
Diffstat (limited to 'tests/arithm')
-rw-r--r--tests/arithm/t1.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/arithm/t1.nim b/tests/arithm/t1.nim
new file mode 100644
index 000000000..f9a87684e
--- /dev/null
+++ b/tests/arithm/t1.nim
@@ -0,0 +1,2 @@
+doAssert typeOf(1.int64 + 1.int) is int64
+doAssert typeOf(1.uint64 + 1.uint) is uint64