Skip to content

Commit 0c05f82

Browse files
authored
Merge pull request #71622 from Azoy/indirect-abi-no-go
[docs] Mention indirect in library evolution doc for enums
2 parents bb530de + be4cac5 commit 0c05f82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/LibraryEvolution.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ This limitation is similar to the limitation for stored properties on structs.
543543
Adding or removing the ``@objc`` attribute from an enum is not permitted; this
544544
affects the enum's memory representation and is not backwards-compatible.
545545

546+
Adding or removing ``indirect`` to any of the cases or the enum itself is not
547+
permitted; this affects the enum's memory representation and is not
548+
backwards-compatible.
546549

547550
Initializers
548551
------------
@@ -587,7 +590,6 @@ Even for default "non-frozen" enums, adding new cases should not be done
587590
lightly. Any clients attempting to do an exhaustive switch over all enum cases
588591
will likely not handle new cases well.
589592

590-
591593
Protocols
592594
~~~~~~~~~
593595

0 commit comments

Comments
 (0)