You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import macros
funcrun(fn: proc()) =fn()
macrofoo(T: typed): untyped=procbar() =echorepr T
run(bar)
echorepr T
foo(int)
Current Output
nil
nil
Expected Output
int
int
Additional Information
This can be workaround by shadowing the parameter before the closure declaration
$ nim -v
Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2021-06-24
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 0f91b67f5c15328330f74a8769aed9961940aab2
active boot switches: -d:release -d:nimUseLinenoise
The text was updated successfully, but these errors were encountered:
Example
Current Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: