tevalorder.nim 231 B

12345678910111213141516171819
  1. discard """
  2. output: '''0
  3. 1
  4. 2'''
  5. targets: "cpp"
  6. """
  7. # bug #8202
  8. var current: int = 0
  9. proc gen(): string = current.inc; $(current - 1)
  10. proc allOut(a, b, c: string) =
  11. echo a
  12. echo b
  13. echo c
  14. allOut(gen(), gen(), gen())