== not be called, why?

I have a class A: NSObject, NSCoding {

and inside I define

static func == (lhs: A, rhs: A) -> Bool.

}

 

a: A

b: A

when I do a == b, func == was not called, why?

Powered by WPeMatico

About

You may also like...

Comments are closed.