astToStr doesn't work inside generics
Example
template fun(field) =
echo astToStr(field)
proc test1() =
fun(nonexistant1) # works
proc test2[T]() =
fun(nonexistant2) # fails: Error: undeclared identifier: 'nonexistant2'
test1()
Current Output
Error: undeclared identifier: 'nonexistant2'
Expected Output
works
Additional Information