typedesc seems different from other type in the macro.
macro m1(T: typed): untyped =
echo treeRepr T
macro m2(T: typedesc): untyped =
#echo treeRepr T # compile error
echo repr T.getType
m1(int) # Sym "int"
m2(int) # typeDesc[int]
- Re: What is the typedesc inside the compiler? slangmgh
