Skip to content

Instantly share code, notes, and snippets.

@lilyball
Forked from hartbit/gist:cc68a3ca1d171db0bedf
Last active August 29, 2015 14:04
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 lilyball/1b134847b7f50b9293dd to your computer and use it in GitHub Desktop.
Save lilyball/1b134847b7f50b9293dd to your computer and use it in GitHub Desktop.
protocol Delegate {
typealias GenerateType
func generate() -> GenerateType
}
class Controller<D: Delegate> {
var delegate: D
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment