Skip to content

Commit f1f8c33

Browse files
committed
Add a note about InferIsolatedConformances.
Isolated conformance inference is gated behing the InferIsolatedConformances upcoming feature. Add a dedicated section for inference and a note about the upcoming feature identifier per the guidance in Style.md.
1 parent 7a0fc92 commit f1f8c33

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,15 @@ This allows the implementation of the conformance
16291629
to use global actor isolated state
16301630
while ensuring that state is only accessed
16311631
from within the actor.
1632-
Isolated conformances are also inferred
1632+
1633+
### Inferring an Isolated Conformance
1634+
1635+
> Note:
1636+
> Isolated conformance inference is an upcoming language feature.
1637+
> To enable it in current language modes of Swift,
1638+
> use the feature identifier `InferIsolatedConformances`.
1639+
1640+
Isolated conformances are inferred
16331641
for global actor isolated types.
16341642
The following code example declares a conformance to `Equatable`
16351643
for a main-actor isolated class,

0 commit comments

Comments
 (0)