t19095.nim 425 B

123456789101112131415161718192021222324252627282930313233343536
  1. discard """
  2. action: compile
  3. """
  4. block:
  5. func inCheck() =
  6. discard
  7. iterator iter(): int =
  8. yield 0
  9. yield 0
  10. func search() =
  11. let inCheck = 0
  12. for i in iter():
  13. proc hello() =
  14. inCheck()
  15. search()
  16. block:
  17. iterator iter(): int =
  18. yield 0
  19. yield 0
  20. func search() =
  21. let lmrMoveCounter = 0
  22. for i in iter():
  23. proc hello() =
  24. discard lmrMoveCounter
  25. search()