when setting up implicit memberwise ctors and accessors on subscripts, make sure to install

exposed keyword arguments into the TuplePatterns labels.

Switch tuple conversion to use tuplepattern labels instead of parameter labels.


Swift SVN r26861
This commit is contained in:
Chris Lattner
2015-04-02 05:05:27 +00:00
parent b122c0da47
commit 49d76f62d0
3 changed files with 5 additions and 3 deletions

View File

@@ -2427,7 +2427,8 @@ static FuncDecl *createAccessorFunc(SourceLoc DeclLoc,
auto *TP = cast<TuplePattern>(Indices);
for (const auto &elt : TP->getFields()) {
ValueArgElements.push_back(
TuplePatternElt(clonePattern(elt.getPattern())));
TuplePatternElt(elt.getLabel(), elt.getLabelLoc(),
clonePattern(elt.getPattern())));
}
isVararg = TP->hasVararg();
}