t12274.nim 129 B

1234567891011121314
  1. discard """
  2. joinable: false
  3. """
  4. var s: seq[int]
  5. s.add block:
  6. let i = 1
  7. i
  8. s.add try:
  9. 2
  10. except:
  11. 3
  12. doAssert s == @[1, 2]