Created
November 2, 2015 07:21
-
-
Save NetguruGist/0476df782b7678864f18 to your computer and use it in GitHub Desktop.
error7 swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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