mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user