In the following code, I received the error 'variable used within its own initial value'. Surely the complier should appreciate that I am referring to the parameter in the function signature, and not the parameter that failed to initialise?
private func handle(error: Error) {
guard let error = error as? FetchError else {
let controller = makeAlert(for: error) // variable used within its own initial value
present(controller, animated: true)
return
}
//etc
}