Skip to content

Commit 960906a

Browse files
committed
[Sema] TypeWrappers: Set $_storage access level to internal
Otherwise it cannot be used as a protocol requirement witness.
1 parent 04f1cde commit 960906a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckTypeWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ GetTypeWrapperProperty::evaluate(Evaluator &evaluator,
195195
/*genericArgs=*/{storage->getInterfaceType()->getMetatypeInstanceType()});
196196

197197
return injectProperty(parent, ctx.Id_TypeWrapperProperty, propertyTy,
198-
VarDecl::Introducer::Var, AccessLevel::Private);
198+
VarDecl::Introducer::Var, AccessLevel::Internal);
199199
}
200200

201201
VarDecl *GetTypeWrapperStorageForProperty::evaluate(Evaluator &evaluator,

0 commit comments

Comments
 (0)