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

Reply via email to