Closed richardtop closed 6 years ago
Hi, I got an error when working with Swift 4.1 and Xcode 9.3 beta 3 (9Q117m), when installing the framework using CocoaPods v1.4.0:
Not critical now, stable Xcode 9.2 and Swift 4 work correctly.
Removing this piece of code makes it compile:
static func == (lhs: When<Value?>, rhs: When<Value?>) -> Bool { switch (lhs, rhs) { case (.value(let lhs), .value(let rhs)): switch (lhs, rhs) { case (nil, nil): return true case (nil, _?), (_?, nil): return false case let (lhs?, rhs?): return lhs == rhs } case (.error(let lhs), .error(let rhs)): return (lhs as NSError).isEqual(rhs as NSError) case (.value, .error), (.error, .value): return false } }
Introduction of the conditional conformance in Swift 4.1 might be the root cause.
Thanks, Richard! The issue should be resolved in 1.0.6.
Thanks for the quick release! However, I think, it has to be revisited when Swift 4.1 comes out of the beta.
Hi, I got an error when working with Swift 4.1 and Xcode 9.3 beta 3 (9Q117m), when installing the framework using CocoaPods v1.4.0:
Not critical now, stable Xcode 9.2 and Swift 4 work correctly.
Removing this piece of code makes it compile:
Introduction of the conditional conformance in Swift 4.1 might be the root cause.