[QoI] Ignore incorrect parameter types when trying to diagnose trailing closures

Resolves: rdar://problem/28004686
This commit is contained in:
Pavel Yaskevich
2017-06-17 21:49:13 -07:00
parent a5960d8993
commit 2c7c74390d
2 changed files with 6 additions and 1 deletions

View File

@@ -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;