mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] TypeWrappers: Availability of init(storageWrapper:) should match that of $Storage
This commit is contained in:
@@ -362,7 +362,7 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
|
||||
params.push_back(arg);
|
||||
}
|
||||
} else if (ICK == ImplicitConstructorKind::TypeWrapperStorage) {
|
||||
accessLevel = AccessLevel::Public;
|
||||
accessLevel = decl->getTypeWrapperStorageDecl()->getFormalAccess();
|
||||
|
||||
auto typeWrapperInfo = decl->getTypeWrapper();
|
||||
assert(typeWrapperInfo);
|
||||
|
||||
Reference in New Issue
Block a user