mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[QoI] Ignore incorrect parameter types when trying to diagnose trailing closures
Resolves: rdar://problem/28004686
This commit is contained in:
@@ -6116,7 +6116,7 @@ bool FailureDiagnosis::diagnoseTrailingClosureErrors(ApplyExpr *callExpr) {
|
||||
case TypeKind::Tuple: {
|
||||
auto tuple = paramType->getAs<TupleType>();
|
||||
if (tuple->getNumElements() != 1)
|
||||
return false;
|
||||
continue;
|
||||
|
||||
paramType = tuple->getElement(0).getType();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user