Skip to content

Commit 01cfa33

Browse files
authored
Merge pull request #83548 from tshortli/value-generics-availability
AST: Update Swift 6.2 runtime OS versions
2 parents 22b1205 + cdebf2b commit 01cfa33

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

include/swift/AST/RuntimeVersions.def

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ RUNTIME_VERSION(
160160

161161
RUNTIME_VERSION(
162162
(6, 2),
163-
FUTURE
163+
PLATFORM(macOS, (26, 0, 0))
164+
PLATFORM(iOS, (26, 0, 0))
165+
PLATFORM(watchOS, (26, 0, 0))
166+
PLATFORM(visionOS,(26, 0, 0))
164167
)
165168

166169
RUNTIME_VERSION(

test/Availability/value_generics_availability.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
// REQUIRES: OS=macosx
44

5-
struct A<let N: Int> {} // expected-error {{values in generic types are only available in macOS 99.99.0 or newer}}
5+
struct A<let N: Int> {} // expected-error {{values in generic types are only available in macOS 26.0.0 or newer}}
66
// expected-note@-1 {{add '@available' attribute to enclosing generic struct}}
77

8-
class B<let N: Int> {} // expected-error {{values in generic types are only available in macOS 99.99.0 or newer}}
8+
class B<let N: Int> {} // expected-error {{values in generic types are only available in macOS 26.0.0 or newer}}
99
// expected-note@-1 {{add '@available' attribute to enclosing generic class}}
1010

11-
enum C<let N: Int> {} // expected-error {{values in generic types are only available in macOS 99.99.0 or newer}}
11+
enum C<let N: Int> {} // expected-error {{values in generic types are only available in macOS 26.0.0 or newer}}
1212
// expected-note@-1 {{add '@available' attribute to enclosing generic enum}}
1313

1414
func something<let N: Int>(_: A<N>) {} // OK, because A can't reference value generics.

0 commit comments

Comments
 (0)