Nim/tests/tstrange.nim
2008-06-23 01:37:49 +02:00

17 lines
245 B
Nim

# 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