Skip to content

Instantly share code, notes, and snippets.

@JohnSundell
Created March 28, 2017 18:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnSundell/2cf1fdc4e71e9e008ecbf50cb0ba6e4b to your computer and use it in GitHub Desktop.
Save JohnSundell/2cf1fdc4e71e9e008ecbf50cb0ba6e4b to your computer and use it in GitHub Desktop.
Example on how you can name your own types using the same name as a standard libary type
extension Command {
enum Error: Swift.Error {
case missing
case invalid(String)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment