You need to give it the symbol (by passing it as an argument).
template t2() =
template t1(r: untyped) =
r.add("hello")
var res = ""
t1(res)
echo res
proc p1() =
t2()
when isMainModule:
p1()
Run
- It is annoying that the template doesn't resolve the symbol at te... slangmgh
- It is annoying that the template doesn't resolve the symbol ... Araq
- It is annoying that the template doesn't resolve the sym... slangmgh
- It is annoying that the template doesn't resolve the... slangmgh
- It is annoying that the template doesn't resolve... slangmgh
- It is annoying that the template doesn't re... Alogani
- It is annoying that the template doesn'... slangmgh
- It is annoying that the template do... sls1005
- It is annoying that the template do... sls1005
