3
3
* Proposal: [ ST-0009] ( 0009-attachments.md )
4
4
* Authors: [ Jonathan Grynspan] ( https://github.com/grynspan )
5
5
* Review Manager: [ Rachel Brindle] ( https://github.com/younata )
6
- * Status: ** Accepted**
6
+ * Status: ** Accepted with revisions **
7
7
* Bug: [ swiftlang/swift-testing #714 ] ( https://github.com/swiftlang/swift-testing/issues/714 )
8
8
* Implementation: [ swiftlang/swift-testing #973 ] ( https://github.com/swiftlang/swift-testing/pull/973 )
9
9
* Review: ([ acceptance] ( https://forums.swift.org/t/accepted-with-modifications-st-0009-attachments/79193 ) ), ([ review] ( https://forums.swift.org/t/st-0009-attachments/78698 ) ), ([ pitch] ( https://forums.swift.org/t/pitch-attachments/78072 ) )
@@ -259,12 +259,12 @@ that refines `Attachable`:
259
259
/// A type can conform to this protocol if it represents another type that
260
260
/// cannot directly conform to ``Attachable``, such as a non-final class or a
261
261
/// type declared in a third-party module.
262
- public protocol AttachableWrapper <AttachableValue >: Attachable , ~ Copyable {
263
- /// The type of the attachable value represented by this type.
264
- associatedtype AttachableValue
262
+ public protocol AttachableWrapper <Wrapped >: Attachable , ~ Copyable {
263
+ /// The type of the underlying value represented by this type.
264
+ associatedtype Wrapped
265
265
266
- /// The attachable value represented by this instance.
267
- var attachableValue: AttachableValue { get }
266
+ /// The underlying value represented by this instance.
267
+ var wrappedValue: Wrapped { get }
268
268
}
269
269
270
270
extension Attachment where AttachableValue: AttachableWrapper & ~Copyable {
@@ -278,7 +278,7 @@ extension Attachment where AttachableValue: AttachableWrapper & ~Copyable {
278
278
/// ```swift
279
279
/// let attachableValue = attachment.attachableValue as T
280
280
/// ```
281
- public var attachableValue: AttachableValue.AttachableValue { get }
281
+ public var attachableValue: AttachableValue.Wrapped { get }
282
282
}
283
283
```
284
284
0 commit comments