[Property Wrappers] Use autoclosure information from CSApply to compute

`VarDecl::getPropertyWrapperInitValueInterfaceType`.
This commit is contained in:
Holly Borla
2020-07-13 16:23:31 -07:00
parent bf47403162
commit a6c33a9611
18 changed files with 137 additions and 159 deletions

View File

@@ -1335,10 +1335,7 @@ namespace {
// the argument types of the setter and initializer shall be
// different, so we don't rewrite an assignment into an
// initialization.
if (VD->isInnermostPropertyWrapperInitUsesEscapingAutoClosure())
return false;
return true;
return !wrapperInfo.wrappedValuePlaceholder->isAutoClosure();
}
return false;