Swift 3 conversion Error/NSError
I think this was a bug with SourceKit in Xcode 8. As of Xcode 8.1 and 8.2 beta 2, protocols functions contain NSError
parameters are bridged correctly to Swift 3 as Error
:
extension MyClass: AProtocolDeclaration { func someEventHappened(_ error: Error?) { print(error ?? "none") }}