|
4 | 4 | * Authors: [Doug Gregor](https://github.com/DougGregor), [Joe Groff](https://github.com/jckarter)
|
5 | 5 | * Review Manager: [John McCall](https://github.com/rjmccall)
|
6 | 6 | * Status: **Active Review (June 14th...24th, 2019)**
|
7 |
| -* Implementation: Available in [master snapshots](https://swift.org/download/#snapshots). |
| 7 | +* Implementation: [Linux toolchain](https://ci.swift.org/job/swift-PR-toolchain-Linux/243//artifact/branch-master/swift-PR-25464-243-ubuntu16.04.tar.gz), [macOS toolchain](https://ci.swift.org/job/swift-PR-toolchain-osx/317//artifact/branch-master/swift-PR-25464-317-osx.tar.gz), and [master or 5.1 snapshots](https://swift.org/download/#snapshots) after June 14, 2019. |
8 | 8 | * Review: ([review #1](https://forums.swift.org/t/se-0258-property-delegates/23139)) ([revision announcement #1](https://forums.swift.org/t/returned-for-revision-se-0258-property-delegates/24080)) ([review #2](https://forums.swift.org/t/se-0258-property-wrappers-second-review/25843))
|
9 | 9 | * Previous versions: [Revision #1](https://github.com/apple/swift-evolution/commit/8c3499ec5bc22713b150e2234516af3cb8b16a0b)
|
10 | 10 |
|
@@ -478,8 +478,8 @@ struct Ref<Value> {
|
478 | 478 |
|
479 | 479 | subscript<U>(dynamicMember keyPath: WritableKeyPath<Value, U>) -> Ref<U> {
|
480 | 480 | return Ref<U>(
|
481 |
| - read: { self.value[keyPath: keyPath] }, |
482 |
| - write: { self.value[keyPath: keyPath] = $0 }) |
| 481 | + read: { self.wrappedValue[keyPath: keyPath] }, |
| 482 | + write: { self.wrappedValue[keyPath: keyPath] = $0 }) |
483 | 483 | }
|
484 | 484 | }
|
485 | 485 | ```
|
@@ -507,11 +507,11 @@ class Box<Value> {
|
507 | 507 | var wrappedValue: Value
|
508 | 508 |
|
509 | 509 | init(initialValue: Value) {
|
510 |
| - self.value = initialValue |
| 510 | + self.wrappedValue = initialValue |
511 | 511 | }
|
512 | 512 |
|
513 | 513 | var wrapperValue: Ref<Value> {
|
514 |
| - return Ref<Value>(read: { self.value }, write: { self.value = $0 }) |
| 514 | + return Ref<Value>(read: { self.wrappedValue }, write: { self.wrappedValue = $0 }) |
515 | 515 | }
|
516 | 516 | }
|
517 | 517 | ```
|
|
0 commit comments