Skip to content

Commit 79c00ea

Browse files
committed
[CSDiag] We have trailing closure info for subscripts now. Use it.
1 parent ee8ce80 commit 79c00ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,8 +4560,7 @@ bool FailureDiagnosis::visitSubscriptExpr(SubscriptExpr *SE) {
45604560

45614561

45624562
CalleeCandidateInfo calleeInfo(Type(), result.ViableCandidates,
4563-
/*FIXME: Subscript trailing closures*/
4564-
/*hasTrailingClosure*/false, CS,
4563+
SE->hasTrailingClosure(), CS,
45654564
/*selfAlreadyApplied*/false);
45664565

45674566
// We're about to typecheck the index list, which needs to be processed with

0 commit comments

Comments
 (0)