blob: f61451af26f48e2b605b3d1da562bad5f9c60c7b [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
class NotEquatable {}
func test_ArrayOfNotEquatableIsNotEquatable() {
var a = [ NotEquatable(), NotEquatable() ]
// There is also a note attached to declaration - requirement from conditional conformance of '[NotEquatable]' to 'Equatable'
if a == a {} // expected-error {{operator function '==' requires that 'NotEquatable' conform to 'Equatable'}}
}