Hi,
I have a class that inherits from nsobject and I want to write a custom '==' operator for it. According to this
I should be able to just add:
override func == (left: GPPlace, right: GPPlace) -> Bool {
return (left.placeID == right.placeID)
}but all that piece of code gets me is:
GPPlace.swift:38:19: Operators are only allowed at global scope
GPPlace.swift:38:21: Consecutive declarations on a line must be separated by ';'
GPPlace.swift:38:22: Expected declaration