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.
14 lines
772 B
Swift
14 lines
772 B
Swift
// RUN: %target-swift-frontend -typecheck -verify -verify-ignore-unrelated -primary-file %s
|
|
|
|
class Foo: Equatable {}
|
|
// expected-error@-1 {{type 'Foo' does not conform to protocol 'Equatable'}}
|
|
// expected-note@-2 {{automatic synthesis of 'Equatable' is not supported for class declarations}}
|
|
// expected-note@-3 {{add stubs for conformance}}
|
|
|
|
class Bar: Hashable {}
|
|
// expected-error@-1 {{type 'Bar' does not conform to protocol 'Hashable'}}
|
|
// expected-note@-2 {{automatic synthesis of 'Hashable' is not supported for class declarations}}
|
|
// expected-error@-3 {{type 'Bar' does not conform to protocol 'Equatable'}}
|
|
// expected-note@-4 {{automatic synthesis of 'Equatable' is not supported for class declarations}}
|
|
// expected-note@-5 {{add stubs for conformance}}
|