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
Mentionned in #7719/nim-lang/RFCs#44, feel free to close if it works as expected.
Quote do works but getAST doesn't even though I think it should be equivalent here:
Quote do
getAST
import macros, typetraits proc getSubType(T: NimNode): NimNode = echo getTypeInst(T).treerepr result = getTypeInst(T)[1] macro typed_helper(x: typed): untyped = result = getSubType(x) macro untyped_heavylifting(x: varargs[untyped]): untyped = let first = x[0] # result = quote do: # Works # typed_helper(`first`) result = getAST(typed_helper(first)) # Node has no type var a: seq[int] echo untyped_heavylifting(a)
The text was updated successfully, but these errors were encountered:
It should be a proper error message that this is not supported.
Sorry, something went wrong.
No branches or pull requests
Mentionned in #7719/nim-lang/RFCs#44, feel free to close if it works as expected.
Quote do
works butgetAST
doesn't even though I think it should be equivalent here:The text was updated successfully, but these errors were encountered: