diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-02 17:41:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 10:41:44 +0100 |
commit | 544cb107c75523196ceee9408f9b1d5d89c82e48 (patch) | |
tree | 89ed0e095f0f988c9abcc8b4624f9a1ac8d4aa24 /tests/js | |
parent | 00b495de9520a91fe24d81e55da109960189a966 (diff) | |
download | Nim-544cb107c75523196ceee9408f9b1d5d89c82e48.tar.gz |
fix #8821 (#15809)
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/t8821.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/js/t8821.nim b/tests/js/t8821.nim new file mode 100644 index 000000000..43cf3f6f2 --- /dev/null +++ b/tests/js/t8821.nim @@ -0,0 +1,12 @@ +discard """ + errormsg: "Your case statement contains too many branches, consider using if/else instead!" +""" + +proc isInt32(i: int): bool = + case i + of 1 .. 70000: + return true + else: + return false + +discard isInt32(1) \ No newline at end of file |