Func == not getting called

I am writing my own class in a silver class library, and including the == overload like so:

static func == (lhs: URL, rhs: URL) -> Bool {
	print("performing ==")
	return lhs._url.equals(rhs._url)
}

And in my EUnit tests I am using β€˜==’ but the static == method is never getting called. Is this a known issue. This is Silver on Java, and Fire 9.1.99.2141.

Thank you,
Tyler

full test case would be appreciated.

Upon further testing, I find that if the Equatable class is directly included in the project, the == does get called properly. But if the class is part of a (Silver) class library, it does not. I can zip and share my project if that would help.

Thank you,
Tyler

Please, yes.

Thanks, logged as bugs://78199

Does it work if you add β€œpublic” to the signature ?

bugs://78199 got closed with status nochangereq.

Confirmed; if I change your testcase to == it will call it (if I actually do an equals in the code).

Sorry, have been very busy with a native iOS Swift application and am now finally getting back to test some Silver porting work.

As you suggested, adding the public to the static func == solves the issue. Thank you very much.

2 Likes