You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Constraints/diagnostics.swift
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -687,7 +687,9 @@ enum AssocTest {
687
687
case one(Int)
688
688
}
689
689
690
-
ifAssocTest.one(1)==AssocTest.one(1){} // expected-error{{referencing operator function '==' on 'Equatable' requires that 'AssocTest' conform to 'Equatable'}}
690
+
// FIXME(rdar://problem/65688291) - on iOS simulator this diagnostic is flaky,
691
+
// either `referencing operator function '==' on 'Equatable'` or `operator function '==' requires`
692
+
ifAssocTest.one(1)==AssocTest.one(1){} // expected-error{{requires that 'AssocTest' conform to 'Equatable'}}
691
693
// expected-note @-1 {{binary operator '==' cannot be synthesized for enums with associated values}}
0 commit comments