This piece of code works absolutely fine in Swift 1.1
// Obj-C @import Foundation; @protocol HashableObject - (NSUInteger)hash; @end //
In Swift 1.2 (Xcode 6.3 beta 2) you can override the hash property of NSObject as a computed property:
hash
NSObject
class Object: NSObject { override var hash: Int { return 0 } }