I had code that worked in beta version of Xcode 6, but recently stopped working after upgrading to xcode 6.1.
This is my protocol:
protocol CanDeserialiseFromJson { class func FromJson(json : JSONValue) -> Self }
This is the implementation:
extension Invoice : CanDeserialiseFromJson { class func FromJson(json : JSONValue) -> Self { return Invoice() } }
This does not give an error:
'Invoice' is not convertable to 'Self'
As I said, it worked, and I can’t understand why it doesn’t work anymore
source share