parent
426e5c2d1f
commit
ab47a870bc
2 changed files with 22 additions and 1 deletions
11
tests/typerel/t8172.nim
Normal file
11
tests/typerel/t8172.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
line: 11
|
||||
errormsg: "cannot convert array[0..0, string] to varargs[string]"
|
||||
"""
|
||||
|
||||
proc f(v: varargs[string]) =
|
||||
echo(v)
|
||||
|
||||
f("b", "c") # Works
|
||||
f(["b", "c"]) # Works
|
||||
f("b", ["c"]) # Fails
|
||||
Loading…
Add table
Add a link
Reference in a new issue