Skip to content

Commit d1d4088

Browse files
committed
[CodeSynthesis] When creating the pattern binding for the backing variable, use the original property's static spelling
1 parent 1f49050 commit d1d4088

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CodeSynthesis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,8 @@ PropertyWrapperBackingPropertyInfoRequest::evaluate(Evaluator &evaluator,
17791779
pbdPattern->setType(storageType);
17801780
pbdPattern = TypedPattern::createImplicit(ctx, pbdPattern, storageType);
17811781
auto pbd = PatternBindingDecl::createImplicit(
1782-
ctx, backingVar->getCorrectStaticSpelling(), pbdPattern,
1783-
/*init*/nullptr, dc, SourceLoc());
1782+
ctx, var->getCorrectStaticSpelling(), pbdPattern,
1783+
/*init*/ nullptr, dc, SourceLoc());
17841784
addMemberToContextIfNeeded(pbd, dc, var);
17851785
pbd->setStatic(var->isStatic());
17861786

0 commit comments

Comments
 (0)