Skip to content

Commit aef3d09

Browse files
committed
"yet" was removed from some diagnostics by 21b2073
1 parent f2c434a commit aef3d09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/Sema/enum_equatable_hashable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public func ==(lhs: Medicine, rhs: Medicine) -> Bool { // expected-note 2 {{non-
178178

179179
// No explicit conformance; it could be derived, but we don't support extensions
180180
// yet.
181-
extension Complex : Hashable {} // expected-error 2 {{cannot be automatically synthesized in an extension yet}}
181+
extension Complex : Hashable {} // expected-error 2 {{cannot be automatically synthesized in an extension}}
182182

183183
// No explicit conformance and it cannot be derived.
184184
enum NotExplicitlyHashableAndCannotDerive {
@@ -195,7 +195,7 @@ extension OtherFileNonconforming: Hashable {
195195
var hashValue: Int { return 0 }
196196
}
197197
// ...but synthesis in a type defined in another file doesn't work yet.
198-
extension YetOtherFileNonconforming: Equatable {} // expected-error {{cannot be automatically synthesized in an extension yet}}
198+
extension YetOtherFileNonconforming: Equatable {} // expected-error {{cannot be automatically synthesized in an extension}}
199199

200200
// Verify that an indirect enum doesn't emit any errors as long as its "leaves"
201201
// are conformant.

test/Sema/struct_equatable_hashable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var genericNotHashableHash: Int = GenericNotHashable<String>(value: "a").hashVal
114114
struct StructConformsInExtension {
115115
let v: Int
116116
}
117-
extension StructConformsInExtension : Equatable {} // expected-error {{cannot be automatically synthesized in an extension yet}}
117+
extension StructConformsInExtension : Equatable {} // expected-error {{cannot be automatically synthesized in an extension}}
118118

119119
// But explicit conformance in an extension should work.
120120
public struct StructConformsAndImplementsInExtension {
@@ -144,7 +144,7 @@ extension OtherFileNonconforming: Hashable {
144144
var hashValue: Int { return 0 }
145145
}
146146
// ...but synthesis in a type defined in another file doesn't work yet.
147-
extension YetOtherFileNonconforming: Equatable {} // expected-error {{cannot be automatically synthesized in an extension yet}}
147+
extension YetOtherFileNonconforming: Equatable {} // expected-error {{cannot be automatically synthesized in an extension}}
148148

149149
// FIXME: Remove -verify-ignore-unknown.
150150
// <unknown>:0: error: unexpected error produced: invalid redeclaration of 'hashValue'

0 commit comments

Comments
 (0)