File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2703,14 +2703,14 @@ void Serializer::writeDecl(const Decl *D) {
2703
2703
access <= swift::AccessLevel::FilePrivate &&
2704
2704
!value->getDeclContext ()->isLocalContext ();
2705
2705
2706
- // Emit the the filename for private mapping for private decls or internal
2706
+ // Emit the the filename for private mapping for private decls and
2707
2707
// decls with private accessors if compiled with -enable-private-imports.
2708
2708
bool shouldEmitFilenameForPrivate =
2709
2709
M->arePrivateImportsEnabled () &&
2710
2710
!value->getDeclContext ()->isLocalContext () &&
2711
2711
(access <= swift::AccessLevel::FilePrivate ||
2712
2712
(storage &&
2713
- storage->getFormalAccess () = = swift::AccessLevel::Internal &&
2713
+ storage->getFormalAccess () > = swift::AccessLevel::Internal &&
2714
2714
storage->hasPrivateAccessor ()));
2715
2715
2716
2716
if (shouldEmitFilenameForPrivate || shouldEmitPrivateDescriminator) {
Original file line number Diff line number Diff line change @@ -12,4 +12,6 @@ extension Value {
12
12
struct Internal {
13
13
private( set) var internalVarWithPrivateSetter : Int = 0
14
14
fileprivate( set) var internalVarWithFilePrivateSetter : Int = 0
15
+ public private( set) var publicVarWithPrivateSetter : Int = 0
16
+ public fileprivate( set) var publicVarWithFilePrivateSetter : Int = 0
15
17
}
Original file line number Diff line number Diff line change 45
45
mutating func set( ) {
46
46
self . internalVarWithPrivateSetter = 1
47
47
self . internalVarWithFilePrivateSetter = 1
48
+ self . publicVarWithPrivateSetter = 1
49
+ self . publicVarWithFilePrivateSetter = 1
48
50
}
49
51
}
50
52
You can’t perform that action at this time.
0 commit comments