Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. let structAsAny1 = Struct(id: 1) as Any
  2.  
  3. let notification = Notification(name: aName, object: structAsAny1, userInfo: nil)
  4. (notification as AnyObject) === (notification as AnyObject) //false
  5.  
  6. (structAsAny1 as AnyObject) === (structAsAny1 as AnyObject) //false
  7.  
  8. let structAsAnyObject = Struct(id: 1) as AnyObject
  9. (structAsAnyObject) === (structAsAnyObject) //true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement