Here's another example that works, showing yet again that the error is due to
mishandling of the symbol table. I'm going to go ahead and file a bug.
template z(body: untyped) =
proc bod(a: int) =
let x {.inject.} = a
body
template t(body: untyped) =
z(body)
for x in [1]:
bod(x)
t:
echo x
Run
- bizarre name clash with template jibal
- Re: bizarre name clash with template jibal
- Re: bizarre name clash with template cblake
- Re: bizarre name clash with template jyapayne
- Re: bizarre name clash with template jibal
- Re: bizarre name clash with template jibal
- Re: bizarre name clash with template jibal
- Re: bizarre name clash with templat... cblake
- Re: bizarre name clash with templat... jyapayne
- Re: bizarre name clash with templat... jibal
- Re: bizarre name clash with templat... solo989
- Re: bizarre name clash with templat... jibal
- Re: bizarre name clash with templat... cblake
- Re: bizarre name clash with templat... Araq
- Re: bizarre name clash with templat... jibal
