Skip to content

Commit 55c766b

Browse files
committed
---
yaml --- r: 275263 b: refs/heads/master-next c: f049269 h: refs/heads/master i: 275261: 59e1c6d 275259: 4855d68 275255: f12751c 275247: fdd25c0 275231: c5bf628 275199: 8aa8ecf
1 parent c06bbcc commit 55c766b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 65b3164726f2e62dff31e90a5cb5e3fb67cc82bf
3-
refs/heads/master-next: 5d160b68a5b41a467dd1a32ec066a044f4364117
3+
refs/heads/master-next: f0492690d19310ea0cd9bd0ce6a2c5e17fdd294b
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/Serialization/Serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,14 +2703,14 @@ void Serializer::writeDecl(const Decl *D) {
27032703
access <= swift::AccessLevel::FilePrivate &&
27042704
!value->getDeclContext()->isLocalContext();
27052705

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
27072707
// decls with private accessors if compiled with -enable-private-imports.
27082708
bool shouldEmitFilenameForPrivate =
27092709
M->arePrivateImportsEnabled() &&
27102710
!value->getDeclContext()->isLocalContext() &&
27112711
(access <= swift::AccessLevel::FilePrivate ||
27122712
(storage &&
2713-
storage->getFormalAccess() == swift::AccessLevel::Internal &&
2713+
storage->getFormalAccess() >= swift::AccessLevel::Internal &&
27142714
storage->hasPrivateAccessor()));
27152715

27162716
if (shouldEmitFilenameForPrivate || shouldEmitPrivateDescriminator) {

branches/master-next/test/Serialization/Inputs/private_import_other.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ extension Value {
1212
struct Internal {
1313
private(set) var internalVarWithPrivateSetter : Int = 0
1414
fileprivate(set) var internalVarWithFilePrivateSetter : Int = 0
15+
public private(set) var publicVarWithPrivateSetter : Int = 0
16+
public fileprivate(set) var publicVarWithFilePrivateSetter : Int = 0
1517
}

branches/master-next/test/Serialization/private_import.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
mutating func set() {
4646
self.internalVarWithPrivateSetter = 1
4747
self.internalVarWithFilePrivateSetter = 1
48+
self.publicVarWithPrivateSetter = 1
49+
self.publicVarWithFilePrivateSetter = 1
4850
}
4951
}
5052

0 commit comments

Comments
 (0)