Created
August 17, 2017 02:52
-
-
Save d-date/8ff5a21608ec8f9667cf4c6444e00ab1 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 Associatable { | |
var associatedValue: Any { | |
} | |
enum Hoge: Associatable { | |
case fuga(a: String) | |
var associatedValue: Any { | |
switch self { | |
case fuga(let a): return a | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment