Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // Doesn't work
  2. struct X {
  3. let z: String? = "xyz"
  4. let omega: [String]? = [ "abc", "xyz" ]
  5. }
  6.  
  7. extension X: Equatable {
  8. public static func ==(x: X, y: X) -> Bool {
  9. return x.z == y.z && // value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?
  10. x.omega == y.omega // value of optional type '[String]?' not unwrapped; did you mean to use '!' or '?'?
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement