Skip to content

Instantly share code, notes, and snippets.

@jemmons
Created February 20, 2017 19:53
Show Gist options
  • Save jemmons/728df1caed4eb5df9a958789789553d6 to your computer and use it in GitHub Desktop.
Save jemmons/728df1caed4eb5df9a958789789553d6 to your computer and use it in GitHub Desktop.
import Foundation
protocol `enum` {
func `protocol`()
}
struct `class`: `enum` {
func `protocol`() {
print("hello!")
}
}
`class`().protocol() //> "hello!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment