We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid pragma
invalid pragma for var pragmas inside templates
template foo(lhs, typ, expr) = let lhs = expr proc fun1()= let a {.foo.} = 1 template fun2()= let a {.foo.} = 1 fun1() # ok fun2() # BUG
Error: invalid pragma: foo
works
nim 7e83adf related: #129 => template/macro pragmas don't work in templates (eg: byaddr, since etc) · Issue #15920 · nim-lang/Nim
byaddr
since
let a {.foo.} = 1 => foo(a, nil, 1)
The text was updated successfully, but these errors were encountered:
var a{.foo.} = expr
foo
No branches or pull requests
invalid pragma
for var pragmas inside templatesExample
Current Output
Expected Output
works
Additional Information
nim 7e83adf
related: #129
=> template/macro pragmas don't work in templates (eg:
byaddr
,since
etc) · Issue #15920 · nim-lang/Nimworkaround:
The text was updated successfully, but these errors were encountered: