Skip to content

Commit 500929f

Browse files
authored
Merge pull request #32933 from xedin/rdar-65688291
[TypeChecker] NFC: Adjust flaky ambiguous operator diagnostic (rdar:/…
2 parents 61cb9a5 + 0d2e4ce commit 500929f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Constraints/diagnostics.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,9 @@ enum AssocTest {
687687
case one(Int)
688688
}
689689

690-
if AssocTest.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+
if AssocTest.one(1) == AssocTest.one(1) {} // expected-error{{requires that 'AssocTest' conform to 'Equatable'}}
691693
// expected-note @-1 {{binary operator '==' cannot be synthesized for enums with associated values}}
692694

693695

0 commit comments

Comments
 (0)