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
cannot attach a custom pragma to templates
template bar(a, body: untyped) {.dirty, used.} = discard proc fun1() {.bar: 1.} = discard # ok template fun2() {.bar: 1.} = discard # error: Error: cannot attach a custom pragma to 'fun2' when false: # ditto with these template bar2(body: untyped) {.dirty, used.} = discard template bar3(body: untyped) = discard template fun2() {.bar2.} = discard template fun3() {.bar3.} = discard
Error: cannot attach a custom pragma to 'fun2'
works
var a{.foo.} = expr
foo
since
byaddr
The text was updated successfully, but these errors were encountered:
invalid pragma
No branches or pull requests
cannot attach a custom pragma to templates
Example
Current Output
Expected Output
Possible Solution
var a{.foo.} = expr
inside templates (refs #15920) (except whenfoo
is overloaded) nim-lang/Nim#13869Additional Information
since
in stdlibvar a{.foo.} = expr
inside templates (refs #15920) (except whenfoo
is overloaded) nim-lang/Nim#13869byaddr
,since
etc) · Issue #15920 · nim-lang/NimThe text was updated successfully, but these errors were encountered: