fixes ttypeselectors

This commit is contained in:
Zahary Karadjov
2012-09-28 14:30:19 +03:00
parent 95cf849954
commit 2aabae702d
3 changed files with 14 additions and 8 deletions

View File

@@ -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"