mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Clone arguments with the implicit bit set when generating implicit accessors,
fixing a recently xfailed test.
This commit is contained in:
@@ -100,7 +100,8 @@ buildIndexForwardingParamList(AbstractStorageDecl *storage,
|
||||
return ParameterList::create(context, prefix);
|
||||
|
||||
// Clone the parameter list over for a new decl, so we get new ParamDecls.
|
||||
auto indices = subscript->getIndices()->clone(context);
|
||||
auto indices = subscript->getIndices()->clone(context,
|
||||
ParameterList::Implicit);
|
||||
if (prefix.empty())
|
||||
return indices;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user