mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Property Wrappers] Use autoclosure information from CSApply to compute
`VarDecl::getPropertyWrapperInitValueInterfaceType`.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user