File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 65b3164726f2e62dff31e90a5cb5e3fb67cc82bf
3
- refs/heads/master-next: 5d160b68a5b41a467dd1a32ec066a044f4364117
3
+ refs/heads/master-next: f0492690d19310ea0cd9bd0ce6a2c5e17fdd294b
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
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