Xcode – Evaluating if Error is NSError always succeeds while casting Error as NSError gives a compiler error
We had an issue with an Error object that crashes in Crashlytics' Objective-c code because it doesn't respond to userInfo (a member of NSError), while investigating I stumbled upon this weird behavior in Swift. In a playground, I tried creating…