Skip to content

Commit f08d428

Browse files
authored
Merge pull request #19697 from nkcsgexi/effective-access
swift-module-digester: use getEffectiveAccess() to get accessibility when checking ABI stability.
2 parents 3f470b0 + b7c9e57 commit f08d428

File tree

10 files changed

+188002
-78959
lines changed

10 files changed

+188002
-78959
lines changed

test/api-digester/Inputs/cake.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ public extension P1 {
8888
}
8989

9090
infix operator ..*..
91+
92+
@usableFromInline
93+
class UsableFromInlineClass {}

test/api-digester/Inputs/cake1.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public struct fixedLayoutStruct {
5555
public var a = 1
5656
}
5757

58+
@usableFromInline
5859
@_fixed_layout
59-
public struct fixedLayoutStruct2 {
60+
struct fixedLayoutStruct2 {
6061
public private(set) var NoLongerWithFixedBinaryOrder = 1
6162
public var BecomeFixedBinaryOrder: Int { return 1 }
6263
}

test/api-digester/Inputs/cake2.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public struct fixedLayoutStruct {
5959
private lazy var lazy_d = 4
6060
}
6161

62+
@usableFromInline
6263
@_fixed_layout
63-
public struct fixedLayoutStruct2 {
64+
struct fixedLayoutStruct2 {
6465
public var NoLongerWithFixedBinaryOrder: Int { return 1 }
6566
public var BecomeFixedBinaryOrder = 1
6667
}

0 commit comments

Comments
 (0)