Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let structAsAny1 = Struct(id: 1) as Any
- let notification = Notification(name: aName, object: structAsAny1, userInfo: nil)
- (notification as AnyObject) === (notification as AnyObject) //false
- (structAsAny1 as AnyObject) === (structAsAny1 as AnyObject) //false
- let structAsAnyObject = Struct(id: 1) as AnyObject
- (structAsAnyObject) === (structAsAnyObject) //true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement