Skip to content

Commit 38e7ba0

Browse files
committed
[Sema] TypeWrappers: Availability of init(storageWrapper:) should match that of $Storage
1 parent 5b62705 commit 38e7ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CodeSynthesis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
362362
params.push_back(arg);
363363
}
364364
} else if (ICK == ImplicitConstructorKind::TypeWrapperStorage) {
365-
accessLevel = AccessLevel::Public;
365+
accessLevel = decl->getTypeWrapperStorageDecl()->getFormalAccess();
366366

367367
auto typeWrapperInfo = decl->getTypeWrapper();
368368
assert(typeWrapperInfo);

0 commit comments

Comments
 (0)