You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/NNNN-lifetime-dependency.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -504,29 +504,32 @@ The compiler must issue a diagnostic if any of the above cannot be satisfied.
504
504
505
505
### Grammar
506
506
507
+
This new syntax adds an optional `dependsOn(...)` lifetime modifier just before the return type and parameter types. This modifies *function-result* in the Swift grammar as follows:
507
508
508
-
TODO:
509
-
510
-
* dependent parameters
511
-
* 'immortal' keyword
512
-
513
-
This new syntax adds an optional lifetime modifier just before the return type.
514
-
This modifies *function-result* in the Swift grammar as follows:
The new syntax also adds an optional `selfDependsOn(...)` lifetime modifier before function declarations. This extends *declaration-modifier* as follows:
0 commit comments