diff options
Diffstat (limited to 'tests/accept/run/tstrange.nim')
-rw-r--r-- | tests/accept/run/tstrange.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/accept/run/tstrange.nim b/tests/accept/run/tstrange.nim new file mode 100644 index 000000000..13aab2302 --- /dev/null +++ b/tests/accept/run/tstrange.nim @@ -0,0 +1,17 @@ +# test for extremely strange bug + +proc ack(x: int, y: int): int = + if x != 0: + if y != 5: + return y + return x + return x+y + +proc gen[T](a: T) = + write(stdout, a) + + +gen("hallo") +write(stdout, ack(5, 4)) +#OUT hallo4 + |