Commit 7470155
committed
Sema: Reject captures of
This isn't implemented. It would never make sense for escaping captures of
`async let` values, because doing so would either involve an implicit awaiting
of the value on capture, or else stretching the lifetime of the task past its
scope. In nonescaping contexts, and in nested `async let` expressions, it might
be implementable in the future. rdar://80043610async let bindings.1 parent 439edbc commit 7470155
File tree
3 files changed
+29
-0
lines changed- include/swift/AST
- lib/Sema
- test/Concurrency
3 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
3712 | 3716 | | |
3713 | 3717 | | |
3714 | 3718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
180 | 188 | | |
181 | 189 | | |
182 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments