mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These are tests that fail in the next commit without this flag. This does not add -verify-ignore-unrelated to all tests with -verify, only the ones that would fail without it. This is NFC since this flag is currently a no-op.
10 lines
423 B
Swift
10 lines
423 B
Swift
// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated
|
|
|
|
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'}}
|
|
}
|