diff options
author | Bung <crc32@qq.com> | 2022-09-14 23:16:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 17:16:34 +0200 |
commit | 08faa04d78aca9e619ba518fb9b4ab4e07635455 (patch) | |
tree | 2eb529bc5690c6a58de34d2615c6fdf80e337272 /tests | |
parent | 2e8c016799def0379c6f5571b5138fc062cc2f1a (diff) | |
download | Nim-08faa04d78aca9e619ba518fb9b4ab4e07635455.tar.gz |
fix #20233 Float ranges in case statement in JS crash compiler (#20349)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/js/t20233.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/js/t20233.nim b/tests/js/t20233.nim new file mode 100644 index 000000000..401d14122 --- /dev/null +++ b/tests/js/t20233.nim @@ -0,0 +1,7 @@ +discard """ + output: "yes" +""" +case 1.0 +of 1.0..2.0, 4.0: echo "yes" +of 3.0: discard +else: echo "no" \ No newline at end of file |