Skip to content

Commit ed583e5

Browse files
committed
Update post-16
1 parent bd5f6ed commit ed583e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/en/posts/post-16/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ However, doing this can be quite problematic. What happens if the library owner
2626

2727
[^1]: There are a few exceptions to the this which you can find [here](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0364-retroactive-conformance-warning.md#detailed-design) and [here](https://forums.swift.org/t/amendment-se-0364-allow-same-package-conformances/71877).
2828

29-
## The Solution: `@retroactive`
29+
## Introducing `@retroactive`
3030

3131
To combat this problem, Swift 6.0 now emits a warning any time you retroactively add a conformance to an external type. However, there are some scenarios where it might be best to extend external types, despite this risk.
3232

@@ -43,6 +43,7 @@ If you use `@retroactive`, you are, in fact, explicitly declaring that you ackno
4343
## How to Use It
4444

4545
```swift
46+
import ExternalModule
4647
extension ExternalType: @retroactive ExternalProtocol {
4748
// Implementation here
4849
}

0 commit comments

Comments
 (0)