Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/Constraints/operator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: rdar64844584
// RUN: %target-typecheck-verify-swift

// Test constraint simplification of chains of binary operators.
Expand Down Expand Up @@ -217,11 +216,13 @@ func rdar46459603() {
let e = E.foo(value: "String")
var arr = ["key": e]

// FIXME(rdar://problem/64844584) - on iOS simulator this diagnostic is flaky,
// either `referencing operator function '==' on 'Equatable'` or `operator function '==' requires`
_ = arr.values == [e]
// expected-error@-1 {{referencing operator function '==' on 'Equatable' requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
// expected-error@-1 {{requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
// expected-error@-2 {{cannot convert value of type '[E]' to expected argument type 'Dictionary<String, E>.Values'}}
_ = [arr.values] == [[e]]
// expected-error@-1 {{referencing operator function '==' on 'Array' requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
// expected-error@-1 {{requires that 'Dictionary<String, E>.Values' conform to 'Equatable'}}
// expected-error@-2 {{cannot convert value of type '[E]' to expected element type 'Dictionary<String, E>.Values'}}
}

Expand Down