Skip to content

Commit be4cac5

Browse files
committed
Mention indirect in library evolution doc for enums
Update LibraryEvolution.rst
1 parent 5ce824f commit be4cac5

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)