File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6116,7 +6116,7 @@ bool FailureDiagnosis::diagnoseTrailingClosureErrors(ApplyExpr *callExpr) {
6116
6116
case TypeKind::Tuple: {
6117
6117
auto tuple = paramType->getAs <TupleType>();
6118
6118
if (tuple->getNumElements () != 1 )
6119
- return false ;
6119
+ continue ;
6120
6120
6121
6121
paramType = tuple->getElement (0 ).getType ();
6122
6122
break ;
Original file line number Diff line number Diff line change @@ -13,3 +13,8 @@ func foo(options: [AVMediaSelectionOption]) {
13
13
// expected-error@-1 {{type 'NSViewController' has no member 'respondToMediaOptionSelection(from:)'}}
14
14
}
15
15
}
16
+
17
+ func rdar28004686( a: [ IndexPath ] ) {
18
+ _ = a. sorted { ( lhs: NSIndexPath , rhs: NSIndexPath ) -> Bool in true }
19
+ // expected-error@-1 {{'NSIndexPath' is not convertible to 'IndexPath'}}
20
+ }
You can’t perform that action at this time.
0 commit comments