@@ -1713,7 +1713,8 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
17131713
17141714 if (Context.LangOpts .hasFeature (Feature::InferSendableFromCaptures)) {
17151715 // All global functions should be @Sendable
1716- if (!funcDecl->getDeclContext ()->isTypeContext () && !funcDecl->getDeclContext ()->isLocalContext () ) {
1716+ if (!funcDecl->getDeclContext ()->isTypeContext () &&
1717+ !funcDecl->getDeclContext ()->isLocalContext ()) {
17171718 funcType =
17181719 funcType->withExtInfo (funcType->getExtInfo ().withConcurrent ());
17191720 }
@@ -1722,7 +1723,9 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
17221723 auto openedType = openFunctionType (funcType, locator, replacements,
17231724 funcDecl->getDeclContext ())
17241725 ->removeArgumentLabels (numLabelsToRemove);
1725- openedType = unwrapPropertyWrapperParameterTypes (*this , funcDecl, functionRefKind, openedType->castTo <FunctionType>(), locator);
1726+ openedType = unwrapPropertyWrapperParameterTypes (
1727+ *this , funcDecl, functionRefKind, openedType->castTo <FunctionType>(),
1728+ locator);
17261729
17271730 auto origOpenedType = openedType;
17281731 if (!isRequirementOrWitness (locator)) {
@@ -2677,7 +2680,10 @@ ConstraintSystem::getTypeOfMemberReference(
26772680 if (isPartialApplication (locator) &&
26782681 isSendableType (DC->getParentModule (), baseOpenedTy)) {
26792682 // Add @Sendable to functions without conditional conformances
2680- functionType = functionType->withExtInfo (functionType->getExtInfo ().withConcurrent ())->getAs <FunctionType>();
2683+ functionType =
2684+ functionType
2685+ ->withExtInfo (functionType->getExtInfo ().withConcurrent ())
2686+ ->getAs <FunctionType>();
26812687 }
26822688 // Unapplied values should always be Sendable
26832689 info = info.withConcurrent ();
0 commit comments