Skip to content

Commit ea2acc6

Browse files
committed
[Test] Update Parse/confusables.swift with the "type cannot conform"
error message and note.
1 parent bf80250 commit ea2acc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Parse/confusables.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ if (true ꝸꝸꝸ false) {} // expected-note {{identifier 'ꝸꝸꝸ' contains
1717

1818
// expected-error @+3 {{invalid character in source file}}
1919
// expected-error @+2 {{expected ',' separator}}
20-
// expected-error @+1 {{argument type '(Int, Int)' does not conform to expected type 'BinaryInteger'}}
20+
// expected-error @+1 {{type '(Int, Int)' cannot conform to 'BinaryInteger'; only struct/enum/class types can conform to protocols}}
2121
if (55) == 0 {} // expected-note {{unicode character '‒' looks similar to '-'; did you mean to use '-'?}} {{7-10=-}}
22+
// expected-note @-1 {{required by referencing operator function '==' on 'BinaryInteger' where 'Self' = '(Int, Int)'}}

0 commit comments

Comments
 (0)