File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3146,7 +3146,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
3146
3146
// A decl is safe if formally accessible publicly.
3147
3147
auto accessScope = value->getFormalAccessScope (/* useDC=*/ nullptr ,
3148
3148
/* treatUsableFromInlineAsPublic=*/ true );
3149
- if (accessScope.isPublic ())
3149
+ if (accessScope.isPublic () || accessScope. isPackage () )
3150
3150
return true ;
3151
3151
3152
3152
if (auto accessor = dyn_cast<AccessorDecl>(value))
Original file line number Diff line number Diff line change 17
17
// RUN: -package-name MyPackage -I %t \
18
18
// RUN: -enable-experimental-feature AccessLevelOnImport
19
19
20
+ // RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
21
+ // RUN: -package-name MyPackage -I %t \
22
+ // RUN: -enable-deserialization-safety \
23
+ // RUN: -enable-experimental-feature AccessLevelOnImport
24
+
20
25
/// A client outside of the package raises errors.
21
26
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
22
27
// RUN: -package-name NotMyPackage -I %t \
You can’t perform that action at this time.
0 commit comments