struct Wrapper<Value> {
let value : Value
}
extension Wrapper : Equatable where Value : Equatable {
static func ==(lhs: Wrapper, rhs: Wrapper) -> Bool {
return lhs.value == rhs.value
}
}Entering the above code in a Playground in Xcode Version 9.0 beta (9M136h) gives the following error:
error: MyPlayground.playground:1:1: error: extension of type 'Wrapper' with constraints cannot have an inheritance clause
extension Wrapper : Equatable where Value : Equatable {
Isn't this supposed to work in Swift 4?