Skip to content

Instantly share code, notes, and snippets.

@justMaku
Created June 21, 2015 18:13
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 justMaku/b377fb02d087504a2940 to your computer and use it in GitHub Desktop.
Save justMaku/b377fb02d087504a2940 to your computer and use it in GitHub Desktop.
import Foundation
protocol Value: Equatable {
}
protocol Smashable {
func valueBySmashing​OtherValue​<T: Value,U: Value>(value: T) -> U
}
struct Foo: Smashable {
func valueBySmashing​OtherValue​<T: Value, U: Value>(value: T) -> U {
return B()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment