tinvalidclosure4.nim 127 B

12345678910
  1. discard """
  2. errormsg: "illegal capture 'v'"
  3. line: 7
  4. """
  5. proc outer(v: int) =
  6. proc b {.nimcall.} = echo v
  7. b()
  8. outer(5)