Commit 5c412b4
committed
Sema: Don't allow opaque return types to reference DynamicSelfType
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.
Fixes rdar://72407668 / #563671 parent dceed56 commit 5c412b4
File tree
3 files changed
+49
-4
lines changed- include/swift/AST
- lib/Sema
- test/type
3 files changed
+49
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4215 | 4215 | | |
4216 | 4216 | | |
4217 | 4217 | | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
4218 | 4221 | | |
4219 | 4222 | | |
4220 | 4223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
2849 | | - | |
2850 | | - | |
| 2849 | + | |
2851 | 2850 | | |
| 2851 | + | |
2852 | 2852 | | |
2853 | 2853 | | |
2854 | 2854 | | |
2855 | | - | |
2856 | | - | |
| 2855 | + | |
2857 | 2856 | | |
2858 | 2857 | | |
2859 | 2858 | | |
2860 | 2859 | | |
2861 | 2860 | | |
2862 | 2861 | | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
2863 | 2869 | | |
2864 | 2870 | | |
2865 | 2871 | | |
| |||
| 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 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments