diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-07 21:07:06 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-07 21:07:06 +0200 |
commit | 91b37311d9974ae30745946a52c9a971da1616f4 (patch) | |
tree | 705c74fa395ca8e538bd906ca56e3fac08749231 /tests/js | |
parent | eae3c305a775efc2d04495199704957964f3a644 (diff) | |
download | Nim-91b37311d9974ae30745946a52c9a971da1616f4.tar.gz |
Fix AST generation for case statements (#8908)
Fixes #7534
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/t7534.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/js/t7534.nim b/tests/js/t7534.nim new file mode 100644 index 000000000..64aadb8d6 --- /dev/null +++ b/tests/js/t7534.nim @@ -0,0 +1,7 @@ +proc f(x: int): int = + result = case x + of 1: 2 + elif x == 2: 3 + else: 1 + +doAssert 2 == f(f(f(f(1)))) |