t18645.nim 212 B

12345678910111213141516171819
  1. discard """
  2. matrix: "--gc:arc; --gc:refc"
  3. output: '''
  4. 1
  5. 2
  6. 3
  7. '''
  8. """
  9. proc bitTypeIdUnion() =
  10. var bitId {.global.} = block:
  11. 0
  12. inc bitId
  13. echo bitId
  14. bitTypeIdUnion()
  15. bitTypeIdUnion()
  16. bitTypeIdUnion()