File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: rdar64844584
2
1
// RUN: %target-typecheck-verify-swift
3
2
4
3
// Test constraint simplification of chains of binary operators.
@@ -217,11 +216,13 @@ func rdar46459603() {
217
216
let e = E . foo ( value: " String " )
218
217
var arr = [ " key " : e]
219
218
219
+ // FIXME(rdar://problem/64844584) - on iOS simulator this diagnostic is flaky,
220
+ // either `referencing operator function '==' on 'Equatable'` or `operator function '==' requires`
220
221
_ = arr. values == [ e]
221
- // expected-error@-1 {{referencing operator function '==' on 'Equatable' requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
222
+ // expected-error@-1 {{requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
222
223
// expected-error@-2 {{cannot convert value of type '[E]' to expected argument type 'Dictionary<String, E>.Values'}}
223
224
_ = [ arr. values] == [ [ e] ]
224
- // expected-error@-1 {{referencing operator function '==' on 'Array' requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
225
+ // expected-error@-1 {{requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
225
226
// expected-error@-2 {{cannot convert value of type '[E]' to expected element type 'Dictionary<String, E>.Values'}}
226
227
}
227
228
You can’t perform that action at this time.
0 commit comments