mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a typo in our bin application diagnostic. (rdar://problem/19422548)
Swift SVN r24613
This commit is contained in:
@@ -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:}}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user