Skip to content
New issue

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 #129

Open
timotheecour opened this issue Apr 26, 2020 · 0 comments
Open

cannot attach a custom pragma to templates #129

timotheecour opened this issue Apr 26, 2020 · 0 comments

Comments

@timotheecour
Copy link
Owner

timotheecour commented Apr 26, 2020

cannot attach a custom pragma to templates

Example

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

Current Output

Error: cannot attach a custom pragma to 'fun2'

Expected Output

works

Possible Solution

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant