Given the following playground:
import Foundation
let config = URLSessionConfiguration.default
let session = URLSession(configuration: config)
let eq = config == session.configuration
If you run the playground in Xcode 9.4.1, eq
evaluates to true. In Xcode 10.0 eq
evaluates to false. I took a look at Xcode 10 release notes and the source for URLSession
and I'm not sure what caused the change. It broke one of my tests and I'm scratching my head as to why this broke. Any ideas?
Edit: I get that ==
is just testing the pointers and URLSessionConfiguration
is copied on initialization. I'm more interested in the fact that it evaluates to true in Xcode 9.4.1, which seems to be incorrect. And the fact that it changes in Xcode 10.