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

getCustomPragmaVal Error: typedesc not allowed as tuple field. #19020

Closed
geekrelief opened this issue Oct 20, 2021 · 1 comment
Closed

getCustomPragmaVal Error: typedesc not allowed as tuple field. #19020

geekrelief opened this issue Oct 20, 2021 · 1 comment

Comments

@geekrelief
Copy link
Contributor

In nim 1.6.0:

import macros

type
  foo = object

template typ(T:typedesc) {.pragma.}

proc bar() {.typ: foo.} = discard

static:
  echo bar.getCustomPragmaVal(typ)

Fails to compile with: Error: typedesc not allowed as tuple field.

@ringabout
Copy link
Member

Should be fixed by #19021

ringabout added a commit that referenced this issue Sep 15, 2022
ringabout added a commit that referenced this issue Sep 15, 2022
capocasa pushed a commit to capocasa/Nim that referenced this issue Mar 31, 2023
narimiran pushed a commit that referenced this issue Apr 24, 2023
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

2 participants