-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
AST RendererIssues related to the compiler turning AST back into Nim code as a string.Issues related to the compiler turning AST back into Nim code as a string.
Description
What happened?
If you have a proc
where one of the argument names is quoted, getImpl
ignores the backquotes:
import macros
proc p(`let`:int) = discard
static:
echo bindSym("p").getImpl.repr
generates at compile time:
proc p(let: int) =
discard
It should generate:
proc p(`let`:int) =
discard
Nim Version
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-06-15
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: d33e112
Current Standard Output Logs
No response
Expected Standard Output Logs
No response
Possible Solution
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
AST RendererIssues related to the compiler turning AST back into Nim code as a string.Issues related to the compiler turning AST back into Nim code as a string.