Hmm, that's true. I don't know the reason but judging from error, it's said 
wrong number of argument so need to change to `varargs` to accommodate zero 
arity.

If it's like below, is it ok?
    
    
    template foo(_: untyped): auto =
      echo "foo"
      1
    
    template foo2(_: varargs[untyped]): auto =
      echo "foo2"
      block:
        discard
      2
    
    let x = (block:
      foo:
        discard)
    
    let y = foo2()
    
    echo x
    echo y
    

Reply via email to