Fix a typo in our bin application diagnostic. (rdar://problem/19422548)

Swift SVN r24613
This commit is contained in:
Joe Pamer
2015-01-21 22:11:50 +00:00
parent 0473b79c28
commit f935a15460
12 changed files with 30 additions and 29 deletions

View File

@@ -14,14 +14,14 @@ func test_UnicodeScalarDoesNotImplementArithmetic(us: UnicodeScalar, i: Int) {
let b3 = us * us // expected-error {{binary operator '*' cannot be applied to two UnicodeScalar operands}}
let b4 = us / us // expected-error {{binary operator '/' cannot be applied to two UnicodeScalar operands}}
let c1 = us + i // expected-error {{binary operator '+' cannot be applied operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '+' exist with these partially matching parameter lists:}}
let c2 = us - i // expected-error {{binary operator '-' cannot be applied operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '-' exist with these partially matching parameter lists:}}
let c3 = us * i // expected-error {{binary operator '*' cannot be applied operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '*' exist with these partially matching parameter lists:}}
let c4 = us / i // expected-error {{binary operator '/' cannot be applied operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '/' exist with these partially matching parameter lists:}}
let c1 = us + i // expected-error {{binary operator '+' cannot be applied to operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '+' exist with these partially matching parameter lists:}}
let c2 = us - i // expected-error {{binary operator '-' cannot be applied to operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '-' exist with these partially matching parameter lists:}}
let c3 = us * i // expected-error {{binary operator '*' cannot be applied to operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '*' exist with these partially matching parameter lists:}}
let c4 = us / i // expected-error {{binary operator '/' cannot be applied to operands of type 'UnicodeScalar' and 'Int'}} expected-note{{Overloads for '/' exist with these partially matching parameter lists:}}
let d1 = i + us // expected-error {{binary operator '+' cannot be applied operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '+' exist with these partially matching parameter lists:}}
let d2 = i - us // expected-error {{binary operator '-' cannot be applied operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '-' exist with these partially matching parameter lists:}}
let d3 = i * us // expected-error {{binary operator '*' cannot be applied operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '*' exist with these partially matching parameter lists:}}
let d4 = i / us // expected-error {{binary operator '/' cannot be applied operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '/' exist with these partially matching parameter lists:}}
let d1 = i + us // expected-error {{binary operator '+' cannot be applied to operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '+' exist with these partially matching parameter lists:}}
let d2 = i - us // expected-error {{binary operator '-' cannot be applied to operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '-' exist with these partially matching parameter lists:}}
let d3 = i * us // expected-error {{binary operator '*' cannot be applied to operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '*' exist with these partially matching parameter lists:}}
let d4 = i / us // expected-error {{binary operator '/' cannot be applied to operands of type 'Int' and 'UnicodeScalar'}} expected-note{{Overloads for '/' exist with these partially matching parameter lists:}}
}