Clone arguments with the implicit bit set when generating implicit accessors,

fixing a recently xfailed test.
This commit is contained in:
Chris Lattner
2016-01-02 19:42:05 -08:00
parent 013d08d439
commit ad82cbd5a9
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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 {