Skip to content

Commit 6ecb337

Browse files
authored
Merge pull request #19653 from nkcsgexi/include-unavilable-var
[Test] Check-in ABI and source stability baseline and start running tests for them.
2 parents 4bccbfb + a969486 commit 6ecb337

18 files changed

+215185
-70266
lines changed

include/swift/AST/DiagnosticsModuleDiffer.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ ERROR(decl_reorder,none,"%0 in a non-resilient type changes position from %1 to
5858

5959
ERROR(decl_added,none,"%0 is added to a non-resilient type", (StringRef))
6060

61+
ERROR(decl_has_fixed_order_change,none,"%0 is %select{now|no longer}1 a property with fixed layout order", (StringRef, bool))
62+
6163
ERROR(default_arg_removed,none,"%0 has removed default argument from %1", (StringRef, StringRef))
6264

6365
ERROR(conformance_removed,none,"%0 has removed %select{conformance to|inherited protocol}2 %1", (StringRef, StringRef, bool))

test/api-digester/Inputs/cake.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public struct fixedLayoutStruct {
4949
public var a = 1
5050
private var b = 2
5151
var c = 3
52+
@available(*, unavailable)
53+
public let unavailableProperty = 1
5254
}
5355

5456
extension Int: P1 { public func bar() {} }

test/api-digester/Inputs/cake1.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ public struct fixedLayoutStruct {
5555
public var a = 1
5656
}
5757

58+
@_fixed_layout
59+
public struct fixedLayoutStruct2 {
60+
public private(set) var NoLongerWithFixedBinaryOrder = 1
61+
public var BecomeFixedBinaryOrder: Int { return 1 }
62+
}
63+
5864
@_frozen
5965
public enum FrozenKind {
6066
case Unchanged

test/api-digester/Inputs/cake2.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public struct fixedLayoutStruct {
5959
private lazy var lazy_d = 4
6060
}
6161

62+
@_fixed_layout
63+
public struct fixedLayoutStruct2 {
64+
public var NoLongerWithFixedBinaryOrder: Int { return 1 }
65+
public var BecomeFixedBinaryOrder = 1
66+
}
67+
6268
@_frozen
6369
public enum FrozenKind {
6470
case Unchanged

0 commit comments

Comments
 (0)