mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
11 lines
143 B
Nim
11 lines
143 B
Nim
discard """
|
|
errormsg: "The variable name cannot be `result`!"
|
|
"""
|
|
|
|
import sugar
|
|
|
|
proc begin(): int =
|
|
capture result:
|
|
echo 1+1
|
|
result
|