mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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);
|
return ParameterList::create(context, prefix);
|
||||||
|
|
||||||
// Clone the parameter list over for a new decl, so we get new ParamDecls.
|
// 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())
|
if (prefix.empty())
|
||||||
return indices;
|
return indices;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// RUN: not %target-swift-frontend %s -parse
|
// RUN: not %target-swift-frontend %s -parse
|
||||||
// XFAIL: *
|
|
||||||
|
|
||||||
/// Abstraction of numeric types that approximate real numbers
|
/// Abstraction of numeric types that approximate real numbers
|
||||||
protocol ApproximateRealType {
|
protocol ApproximateRealType {
|
||||||
|
|||||||
Reference in New Issue
Block a user