t8172.nim 202 B

123456789101112
  1. discard """
  2. errormsg: "cannot convert array[0..0, string] to varargs[string]"
  3. line: 11
  4. """
  5. proc f(v: varargs[string]) =
  6. echo(v)
  7. f("b", "c") # Works
  8. f(["b", "c"]) # Works
  9. f("b", ["c"]) # Fails