Skip to content

Commit 8e2c95a

Browse files
authored
Merge pull request #69466 from tshortli/library-evolution-docs-inlinable-func-opaque-return
2 parents ad56977 + 1a9cbbc commit 8e2c95a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/LibraryEvolution.rst

+4
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ compiler):
262262
- They must not reference any ``internal`` entities except for those that have
263263
been declared ``@usableFromInline`` or ``@inlinable``.
264264

265+
Inlinable functions that return opaque types also have additional restrictions.
266+
The underlying concrete type cannot be changed for such a function without
267+
breaking backward compatibility, because the identity of the concrete type has
268+
been exposed by inlining the body of the function into client modules.
265269

266270
Always Emit Into Client
267271
-----------------------

0 commit comments

Comments
 (0)