Skip to content

Commit f0b7572

Browse files
Fixing tests
1 parent e5892b4 commit f0b7572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Constraints/bridging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func rdar19836341(_ ns: NSString?, vns: NSString?) {
285285

286286
// <rdar://problem/20029786> Swift compiler sometimes suggests changing "as!" to "as?!"
287287
func rdar20029786(_ ns: NSString?) {
288-
var s: String = ns ?? "str" as String as String // expected-error{{'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?}} {{19-19=(}} {{50-50=) as String}}
288+
var s: String = ns ?? "str" as String as String // expected-error{{'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?}} {{19-19=(}} {{50-50=) as String}} expected-warning {{redundant cast to 'String' has no effect}} {{41-51=}}
289289
// expected-error@-1 {{cannot convert value of type 'String' to expected argument type 'NSString'}} {{50-50= as NSString}}
290290
var s2 = ns ?? "str" as String as String // expected-error {{cannot convert value of type 'String' to expected argument type 'NSString'}}{{43-43= as NSString}} expected-warning {{redundant cast to 'String' has no effect}} {{34-44=}}
291291

0 commit comments

Comments
 (0)