Why am I getting this error when the arguments for the function are the same as what's being passed?
class ViewController: NSViewController { func foo(path: String, arguments: [String], showOutput: Bool) -> Void { } @IBAction func a1(_ sender: NSButton) { let path = "/sbin/ping" let arguments = ["-c", "5", "google.com"] self.foo(path, arguments, true){ // I'm getting extra argument in call for true } }