Skip to content

Commit c708785

Browse files
authored
Merge pull request #33696 from varungandhi-apple/vg-fix-doc-library-evolution-protocols
2 parents fd3f732 + 907b89c commit c708785

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
@@ -578,7 +578,9 @@ There are very few safe changes to make to protocols and their members:
578578
- The ``@discardableResult`` and ``@warn_unqualified_access`` attributes may
579579
be added to or removed from a function requirement.
580580
- A new ``associatedtype`` requirement may be added (with the appropriate
581-
availability), as long as it has a default implementation.
581+
availability), as long as it has a default implementation. If the protocol
582+
did not have one or more ``associatedtype`` requirements before the change,
583+
then this is a `binary-compatible source-breaking change`.
582584
- A new non-type requirement may be added (with the appropriate availability),
583585
as long as it has an unconstrained default implementation. If the requirement
584586
uses ``Self`` and the protocol has no other requirements using ``Self`` and

0 commit comments

Comments
 (0)