t12844.nim 503 B

1234567891011121314
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "invalid type: 'template (args: varargs[string])' for var. Did you mean to call the template with '()'?"
  4. nimout: '''
  5. t12844.nim(11, 7) Error: invalid type: 'template (args: varargs[string])' for const. Did you mean to call the template with '()'?
  6. t12844.nim(12, 5) Error: invalid type: 'template (args: varargs[string])' for var. Did you mean to call the template with '()'?'''
  7. """
  8. template z*(args: varargs[string, `$`]) =
  9. discard
  10. const x = z
  11. var y = z