Skip to content

Commit 57bc619

Browse files
committed
[Typechecker] Tweak property wrapper mutability computation a bit
1 parent fa1370e commit 57bc619

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/TypeCheckStorage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ static Expr *buildStorageReference(AccessorDecl *accessor,
757757
bool isMemberLValue = isLValue;
758758
auto propertyWrapperMutability =
759759
[&](Decl *decl) -> Optional<std::pair<bool, bool>> {
760+
if (accessor->isCoroutine())
761+
return None;
760762
auto var = dyn_cast<VarDecl>(decl);
761763
if (!var)
762764
return None;

0 commit comments

Comments
 (0)