Commit d6db99a
committed
Sema: Fix effects checking of 'for await' with a concrete conformance
AsyncSequence is only polymorphic over 'throws' effects, not 'async',
because it is @rethrows and not @reasync. So the logic here was wrong,
and it would incorrectly conclude that a 'for await' with a concrete
conformance did not require the outer function to be 'async'.
Fixes rdar://problem/75436909.1 parent 7257b7d commit d6db99a
File tree
2 files changed
+17
-16
lines changed- lib/Sema
- test/Concurrency
2 files changed
+17
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
| 1176 | + | |
1182 | 1177 | | |
1183 | 1178 | | |
1184 | 1179 | | |
| |||
2735 | 2730 | | |
2736 | 2731 | | |
2737 | 2732 | | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
2738 | 2740 | | |
2739 | 2741 | | |
2740 | 2742 | | |
2741 | 2743 | | |
| 2744 | + | |
| 2745 | + | |
2742 | 2746 | | |
2743 | 2747 | | |
2744 | 2748 | | |
| |||
2751 | 2755 | | |
2752 | 2756 | | |
2753 | 2757 | | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
2757 | | - | |
2758 | | - | |
2759 | | - | |
2760 | | - | |
2761 | | - | |
2762 | | - | |
2763 | | - | |
2764 | 2758 | | |
2765 | 2759 | | |
2766 | 2760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments