ttry.nim 362 B

123456789101112131415161718192021222324252627
  1. # bug #21144
  2. block:
  3. try:
  4. let c = try:
  5. 10
  6. except ValueError as exc:
  7. 10
  8. except ValueError as exc:
  9. discard
  10. if true:
  11. block:
  12. let c = try:
  13. 10
  14. except ValueError as exc:
  15. 10
  16. except OSError:
  17. 99
  18. try:
  19. let c = try:
  20. 10
  21. except ValueError as exc:
  22. 10
  23. except ValueError as exc:
  24. discard