`invalid pragma` for var pragmas inside templates ### Example ```nim template foo(lhs, typ, expr) = let lhs = expr proc fun1()= let a {.foo.} = 1 template fun2()= let a {.foo.} = 1 fun1() # ok fun2() # BUG ``` ### Current Output ``` Error: invalid pragma: foo ``` ### Expected Output works ### Additional Information nim 7e83adff84be5d0c401a213eccb61e321a3fb1ff related: https://github.com/timotheecour/Nim/issues/129 => [template/macro pragmas don't work in templates (eg: `byaddr`, `since` etc) · Issue #15920 · nim-lang/Nim](https://github.com/nim-lang/Nim/issues/15920) ## workaround: ``` let a {.foo.} = 1 => foo(a, nil, 1) ```