Guest User

Untitled

a guest
May 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. enum Foo {
  2. case north, south, east, west
  3. case foo(Int), bar(Int)
  4. case foo(Int)
  5. case foo = 1
  6.  
  7. func foo() {
  8. switch self {
  9. case .foo:
  10. case .foo(let x):
  11. case let .foo(x):
  12. case foo:
  13. case let x:
  14. default:
  15. }
  16. }
  17.  
  18. func foo() {
  19. foo()
  20. foo
  21. foo {
  22. }
  23.  
  24. if foo.bar {
  25. }
  26.  
  27. a.b.c()
  28. a.b.c.d()
  29.  
  30. a . foo
  31. a
  32. .b
  33. .c
  34. .d()
  35. a.?b.?c()
  36. }
  37. }
Add Comment
Please, Sign In to add comment