Consider the parameter of the variational function:
func foo(bar:Int...) -> () { }
Here foo can take several arguments, for example foo(5,4) . I'm interested in the Int... type and its supported operations. For example, why is this invalid?
func foo2(bar2:Int...) -> () { foo(bar2); }
Gives an error message:
Could not find overload for '_conversion', which accepts supplied arguments
Why is the transfer of variable parameters invalid?
What is the "conversion" that the compiler complains about?
swift variadic-functions
yizzlez
source share