pass typedesc as NimNode to macros (#11400)
* change typedesc's design in macros * Manual and changelog entry. * add link to RFC
This commit is contained in:
parent
71388caf2e
commit
cb45527e37
6 changed files with 54 additions and 39 deletions
|
|
@ -14,7 +14,7 @@ template selectType(x: int): type =
|
|||
template simpleTypeTempl: type =
|
||||
string
|
||||
|
||||
macro typeFromMacro: type = string
|
||||
macro typeFromMacro: type = bindSym"string"
|
||||
|
||||
# The tests below check that the result variable of the
|
||||
# selected type matches the literal types in the code:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue