summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2022-06-13 15:01:40 +0800
committerGitHub <noreply@github.com>2022-06-13 09:01:40 +0200
commitab477075860364db2690a0411c0b2c330532042f (patch)
treed3b018dc13c7a95a7d5eb0fa60959aeaae8392c2 /tests
parent2f4900615ab0c42c9608910dd30a14be52455f91 (diff)
downloadNim-ab477075860364db2690a0411c0b2c330532042f.tar.gz
[semfold] fix #19199; properly fold uint to float conversion (#19890) [backport]
fix #19199; properly fold float conversion
Diffstat (limited to 'tests')
-rw-r--r--tests/vm/t19199.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/vm/t19199.nim b/tests/vm/t19199.nim
new file mode 100644
index 000000000..6ae48cb54
--- /dev/null
+++ b/tests/vm/t19199.nim
@@ -0,0 +1,6 @@
+# bug #19199
+proc mikasa(x: float) = doAssert x == 42
+
+static:
+  mikasa 42.uint.float
+mikasa 42.uint.float