mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Mark a PatternBindingDecl as implicit in the builder transform
This commit is contained in:
@@ -1064,6 +1064,8 @@ private:
|
||||
auto pbd = PatternBindingDecl::create(
|
||||
ctx, SourceLoc(), StaticSpellingKind::None, temporaryVar->getLoc(),
|
||||
pattern, SourceLoc(), initExpr, dc);
|
||||
if (temporaryVar->isImplicit())
|
||||
pbd->setImplicit();
|
||||
elements.push_back(temporaryVar);
|
||||
elements.push_back(pbd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user