Skip to content

Commit 9c5318c

Browse files
Added a note about optional type
1 parent cdd1c14 commit 9c5318c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proposals/NNNN-weak-let.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Note that all of this relies on the fact that the thread-safety of observing a w
7777
## Proposed solution
7878

7979
`weak` can now be freely combined with `let` in any position that `weak var` would be allowed.
80+
Similar to `weak var`, `weak let` declarations also must be of `Optional` type.
8081

8182
This proposal maintains the status quo regarding `weak` on function arguments and computed properties:
8283
* There is no valid syntax to indicate that function argument is a weak reference.

0 commit comments

Comments
 (0)