Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created November 2, 2015 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetguruGist/0476df782b7678864f18 to your computer and use it in GitHub Desktop.
Save NetguruGist/0476df782b7678864f18 to your computer and use it in GitHub Desktop.
error7 swift
func performOperation(operation: () throws -> Int) -> Int {
return operation()
}
performOperation(throwingOperation) // correct
performOperation(nonThrowingOperation) // correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment