summary refs log blame commit diff stats
path: root/tests/closure/t15594.nim
blob: aacd9ed842a781863608b45fe064ef53602f0680 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                   
discard """
  errormsg: "The variable name cannot be `result`!"
"""

import sugar

proc begin(): int =
  capture result:
    echo 1+1
  result