File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4851,8 +4851,6 @@ class ParamDecl : public VarDecl {
4851
4851
llvm::PointerIntPair<StoredDefaultArgument *, 1 > DefaultValueAndIsVariadic;
4852
4852
4853
4853
// / `@autoclosure` flag associated with this parameter.
4854
- // / FIXME: This has to become declaration attribute after
4855
- // / `@autoclosure` is removed from function type.
4856
4854
bool IsAutoClosure = false ;
4857
4855
4858
4856
public:
Original file line number Diff line number Diff line change @@ -486,8 +486,7 @@ mapParsedParameters(Parser &parser,
486
486
487
487
// If there is `@autoclosure` attribute associated with the type
488
488
// let's mark that in the declaration as well, because it
489
- // belongs to both type flags and declaration at the moment, but
490
- // should be removed from the type in the future.
489
+ // belongs to both type flags and declaration.
491
490
if (auto *ATR = dyn_cast<AttributedTypeRepr>(type)) {
492
491
auto &attrs = ATR->getAttrs ();
493
492
param->setAutoClosure (attrs.has (TypeAttrKind::TAK_autoclosure));
Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ ConstraintSystem::TypeMatchResult constraints::matchCallArguments(
837
837
: ConstraintKind::ArgumentConversion);
838
838
839
839
// Check whether argument of the call at given position refers to
840
- // parameter marked as `@autoclosure. This function is used to
840
+ // parameter marked as `@autoclosure` . This function is used to
841
841
// maintain source compatibility with Swift versions < 5,
842
842
// previously examples like following used to type-check:
843
843
//
You can’t perform that action at this time.
0 commit comments