Created
October 20, 2016 07:21
-
-
Save kumamotone/db8e288fd325fd3aac999cd11df75f4b 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
enum Hoge { | |
case normal | |
case `nil` | |
case `self` | |
case `dynamicType` | |
case `Type` | |
case `Protocol` | |
} | |
print(Hoge.normal) // normal | |
print(Hoge.nil) // nil | |
print(Hoge.self) // self になるはずだが Hoge が出力される | |
// print(Hoge.dynamicType) // Error | |
// print(Hoge.Type) // Error | |
// print(Hoge.Protocol) // Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment