t15594.nim 143 B

1234567891011
  1. discard """
  2. errormsg: "The variable name cannot be `result`!"
  3. """
  4. import sugar
  5. proc begin(): int =
  6. capture result:
  7. echo 1+1
  8. result