Skip to content

Commit 8772b7a

Browse files
authored
SE-0337: fix broken @available declaration
`@available(unavailable, *)` as currently stated in the proposal won't compile, the correct order of arguments to this attribute is `@available(*, unavailable)`.
1 parent 476eefc commit 8772b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0337-support-incremental-migration-to-concurrency-checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ A type can be described as having one of the following three `Sendable` conforma
192192
A type can be made explicitly non-`Sendable` by creating an unavailable conformance to `Sendable`, e.g.,
193193

194194
```swift
195-
@available(unavailable, *)
195+
@available(*, unavailable)
196196
extension Point: Sendable { }
197197
```
198198

0 commit comments

Comments
 (0)