Created
June 21, 2015 18:08
-
-
Save kongtomorrow/7054ba8094fde4319c43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
protocol Value { | |
} | |
protocol Smashable { | |
typealias V : Value | |
func valueBySmashingOtherValue(value: V) -> V | |
} | |
struct Bar : Value { | |
} | |
struct Foo : Value { | |
func valueBySmashingOtherValue<OtherV : Value>(value: OtherV) -> Bar { | |
return Bar() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment