Last active
May 26, 2018 06:24
-
-
Save taku0/5ce67840ce2824409877a6be6988cd5f to your computer and use it in GitHub Desktop.
This file contains 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 Foo { | |
case north, south, east, west | |
case foo(Int), bar(Int) | |
case foo(Int) | |
case foo = 1 | |
func foo() { | |
switch self { | |
case .foo: | |
case .foo(let x): | |
case let .foo(x): | |
case foo: | |
case let x: | |
default: | |
} | |
} | |
func foo() { | |
foo() | |
foo | |
foo { | |
} | |
if foo.bar { | |
} | |
a.b.c() | |
a.b.c.d() | |
a .foo | |
a | |
.b | |
.c | |
.d() | |
a?.b?.c() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment