Files
Nim/tests/closure/t15594.nim
2020-11-02 14:16:33 +01:00

11 lines
143 B
Nim

discard """
errormsg: "The variable name cannot be `result`!"
"""
import sugar
proc begin(): int =
capture result:
echo 1+1
result