Commit e8eaafd
committed
[Typed throws] Check thrown error type from an async for..in loop
While it is not yet possible for an `AsyncSequence` to specify its
thrown error type (so it always throws `any Error`), check that `any
Error` is a suitable error type to be thrown in context.1 parent 99e327d commit e8eaafd
File tree
2 files changed
+20
-1
lines changed- lib/Sema
- test/Concurrency
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
926 | | - | |
| 929 | + | |
927 | 930 | | |
928 | 931 | | |
929 | 932 | | |
| |||
| 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 | + | |
0 commit comments