@@ -1713,7 +1713,8 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
1713
1713
1714
1714
if (Context.LangOpts .hasFeature (Feature::InferSendableFromCaptures)) {
1715
1715
// All global functions should be @Sendable
1716
- if (!funcDecl->getDeclContext ()->isTypeContext () && !funcDecl->getDeclContext ()->isLocalContext () ) {
1716
+ if (!funcDecl->getDeclContext ()->isTypeContext () &&
1717
+ !funcDecl->getDeclContext ()->isLocalContext ()) {
1717
1718
funcType =
1718
1719
funcType->withExtInfo (funcType->getExtInfo ().withConcurrent ());
1719
1720
}
@@ -1722,7 +1723,9 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
1722
1723
auto openedType = openFunctionType (funcType, locator, replacements,
1723
1724
funcDecl->getDeclContext ())
1724
1725
->removeArgumentLabels (numLabelsToRemove);
1725
- openedType = unwrapPropertyWrapperParameterTypes (*this , funcDecl, functionRefKind, openedType->castTo <FunctionType>(), locator);
1726
+ openedType = unwrapPropertyWrapperParameterTypes (
1727
+ *this , funcDecl, functionRefKind, openedType->castTo <FunctionType>(),
1728
+ locator);
1726
1729
1727
1730
auto origOpenedType = openedType;
1728
1731
if (!isRequirementOrWitness (locator)) {
@@ -2677,7 +2680,10 @@ ConstraintSystem::getTypeOfMemberReference(
2677
2680
if (isPartialApplication (locator) &&
2678
2681
isSendableType (DC->getParentModule (), baseOpenedTy)) {
2679
2682
// 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>();
2681
2687
}
2682
2688
// Unapplied values should always be Sendable
2683
2689
info = info.withConcurrent ();
0 commit comments