Skip to content

Instantly share code, notes, and snippets.

@paulofaria
Last active January 9, 2016 13:51
Show Gist options
  • Save paulofaria/42022c62939f256618ff to your computer and use it in GitHub Desktop.
Save paulofaria/42022c62939f256618ff to your computer and use it in GitHub Desktop.

Source:

struct A {}
struct B {}

let a = A()
let b = B()

func f(a: A..., _ b: B) {}

f(a, a, b)

Output:

error: missing argument for parameter #2 in call
f(a, a, b)
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment