mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 02:03:59 +00:00
fixes ttypeselectors
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user