This commit is contained in:
flywind 2020-11-02 21:16:33 +08:00 • committed by GitHub
commit eb429988cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

10
tests/closure/t15594.nim Normal file
View file

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