t22309.nim 130 B

123456789101112
  1. block:
  2. defer:
  3. let a = 42
  4. doAssert not declared(a)
  5. proc lol() =
  6. defer:
  7. let a = 42
  8. doAssert not declared(a)
  9. lol()