You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Constraints/closures.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -371,6 +371,7 @@ func rdar21078316() {
371
371
varfoo:[String:String]?
372
372
varbar:[(String,String)]?
373
373
bar = foo.map{($0, $1)} // expected-error {{contextual closure type '([String : String]) throws -> [(String, String)]' expects 1 argument, but 2 were used in closure body}}
374
+
// expected-error@-1{{cannot convert value of type '(Dictionary<String, String>, _)' to closure result type '[(String, String)]'}}
Copy file name to clipboardExpand all lines: test/Constraints/optional.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -506,7 +506,7 @@ func rdar85166519() {
506
506
507
507
var _:[Int:AnyObject]=[ // expected-error {{dictionary of type '[Int : AnyObject]' cannot be initialized with array literal}}
508
508
// expected-note@-1 {{did you mean to use a dictionary literal instead?}}
509
-
v?.addingReportingOverflow(0) // expected-error {{cannot convert value of type '(partialValue: Int, overflow: Bool)?' to expected dictionary key type 'Int'}}
0 commit comments