fixes #11523
This commit is contained in:
parent
19b142401c
commit
135fdde6a9
2 changed files with 12 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
output: '''true'''
|
||||
output: '''true
|
||||
(999, 0)'''
|
||||
"""
|
||||
|
||||
|
||||
|
|
@ -52,3 +53,11 @@ block tissue1911:
|
|||
proc baz() : int = helper()
|
||||
|
||||
return (bar, baz)
|
||||
|
||||
# bug #11523
|
||||
proc foo(): proc =
|
||||
let a = 999
|
||||
return proc(): (int, int) =
|
||||
return (a, 0)
|
||||
|
||||
echo foo()()
|
||||
Loading…
Add table
Add a link
Reference in a new issue