Avatar
Avatar
t.ae
@swift-5.8.1 func eq<T>(a: T, b: T) -> Bool{ if case a = b { return true } else { return false } }
exit status: 1 with <stdin>:2:13: error: operator function '~=' requires that 'T' conform to 'Equatable' if case a = b { ^ Swift.~=:1:13: note: where 'T' = 'T' public func ~= <T>(a: T, b: T) -> Bool where T : Equatable ^