File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6842,7 +6842,7 @@ AbstractRawRepresentableFailure::getDiagnostic() const {
6842
6842
} else if (locator->isLastElement <LocatorPathElt::ApplyArgToParam>()) {
6843
6843
return diag::cannot_convert_argument_value;
6844
6844
} else if (locator->isLastElement <LocatorPathElt::AnyRequirement>()) {
6845
- return diag::cannot_convert_initializer_value_protocol ;
6845
+ return diag::type_does_not_conform ;
6846
6846
}
6847
6847
6848
6848
return None;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func acceptComparable<T: Comparable>(_: T) {}
20
20
func testNewTypeWrapper( x: NSNotification . Name , y: NSNotification . Name ) {
21
21
acceptEquatable ( x)
22
22
acceptHashable ( x)
23
- acceptComparable ( x) // expected-error {{value of type 'NSNotification.Name' does not conform to specified type 'Comparable'}} {{19-19=.rawValue}}
23
+ acceptComparable ( x) // expected-error {{type 'NSNotification.Name' does not conform to protocol 'Comparable'}} {{19-19=.rawValue}}
24
24
25
25
_ = x == y
26
26
_ = x != y
You can’t perform that action at this time.
0 commit comments