parent
eae3c305a7
commit
91b37311d9
2 changed files with 12 additions and 1 deletions
7
tests/js/t7534.nim
Normal file
7
tests/js/t7534.nim
Normal file
|
|
@ -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))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue