Merge pull request #1075 from flaviut/inlinedocs

Add some documentations and code examples in system
This commit is contained in:
Andreas Rumpf 2014-04-09 22:56:18 +02:00
commit a690e7b267
71 changed files with 2521 additions and 15 deletions

23
tests/misc/tstrange.nim Normal file
View file

@ -0,0 +1,23 @@
discard """
file: "tstrange.nim"
output: "hallo4"
"""
# 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