Injecting both x symbols works.
template t(body: untyped) =
proc bod(a: int) =
let x {.inject.} = a
body
for x {.inject.} 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
