fixes ttypeselectors
This commit is contained in:
parent
95cf849954
commit
2aabae702d
3 changed files with 14 additions and 8 deletions
|
|
@ -9,8 +9,7 @@ template selectType(x: int): typeDesc =
|
|||
template simpleTypeTempl: typeDesc =
|
||||
string
|
||||
|
||||
macro typeFromMacro(s: expr): typeDesc =
|
||||
result = newIdentNode"string"
|
||||
macro typeFromMacro: typedesc = string
|
||||
|
||||
proc t1*(x: int): simpleTypeTempl() =
|
||||
result = "test"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue