Skip to content

Instantly share code, notes, and snippets.

@kumamotone
Created October 20, 2016 07:21
Show Gist options
  • Save kumamotone/db8e288fd325fd3aac999cd11df75f4b to your computer and use it in GitHub Desktop.
Save kumamotone/db8e288fd325fd3aac999cd11df75f4b to your computer and use it in GitHub Desktop.
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