Skip to content

Commit 671be54

Browse files
authored
Merge pull request swiftlang#33413 from xedin/rdar-66574239
[TypeChecker] NFC: Clarify another flaky conformance diagnostic (only…
2 parents 6a510c1 + 9cd06f7 commit 671be54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Sema/struct_equatable_hashable.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ struct StructWithoutExplicitConformance {
114114
}
115115

116116
func structWithoutExplicitConformance() {
117+
// FIXME(rdar://problem/64844584) - on iOS simulator this diagnostic is flaky
117118
// This diagnostic is about `Equatable` because it's considered the best possible solution among other ones for operator `==`.
118-
if StructWithoutExplicitConformance(a: 1, b: "b") == StructWithoutExplicitConformance(a: 2, b: "a") { } // expected-error{{referencing operator function '==' on 'Equatable' requires that 'StructWithoutExplicitConformance' conform to 'Equatable'}}
119+
if StructWithoutExplicitConformance(a: 1, b: "b") == StructWithoutExplicitConformance(a: 2, b: "a") { }
120+
// expected-error@-1 {{requires that 'StructWithoutExplicitConformance' conform to 'Equatable'}}
119121
}
120122

121123
// Structs with non-hashable/equatable stored properties don't derive conformance.

0 commit comments

Comments
 (0)