mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
@@ -27,3 +27,11 @@ proc bar(b: int):int =
|
||||
|
||||
echo foo(0)
|
||||
echo bar(0)
|
||||
|
||||
# bug #9726
|
||||
|
||||
proc foo: (proc: int) =
|
||||
proc bar: int = 1
|
||||
return bar
|
||||
|
||||
discard foo()
|
||||
|
||||
Reference in New Issue
Block a user