mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema/SILGen] Consider init exprs associated with init accessor properties for memberwise init
This commit is contained in:
@@ -144,12 +144,6 @@ static void maybeAddMemberwiseDefaultArg(ParamDecl *arg, VarDecl *var,
|
||||
if (!var->getParentPattern()->getSingleVar())
|
||||
return;
|
||||
|
||||
// FIXME: Don't attempt to synthesize default arguments for init
|
||||
// accessor properties because there could be multiple properties
|
||||
// with default values they are going to initialize.
|
||||
if (var->getAccessor(AccessorKind::Init))
|
||||
return;
|
||||
|
||||
// Whether we have explicit initialization.
|
||||
bool isExplicitlyInitialized = false;
|
||||
if (auto pbd = var->getParentPatternBinding()) {
|
||||
|
||||
Reference in New Issue
Block a user