Commit 930827a
committed
Ban Nested
We would like to leave room in the language for `some` types in existential
constraints a la `any P<some Q>` to resolve as a part of the requirement
signature of a future generalized existential type. To that end, usages of
`some` types nested anywhere in the arguments of an existential will fail to
resolve.
rdar://92758884some Types in Existentials1 parent 522f0cb commit 930827a
File tree
6 files changed
+70
-6
lines changed- include/swift/AST
- lib/Sema
- test/type
- validation-test/compiler_crashers_2_fixed
6 files changed
+70
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5032 | 5032 | | |
5033 | 5033 | | |
5034 | 5034 | | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
5035 | 5038 | | |
5036 | 5039 | | |
5037 | 5040 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
| |||
2126 | 2130 | | |
2127 | 2131 | | |
2128 | 2132 | | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
2129 | 2148 | | |
2130 | 2149 | | |
2131 | 2150 | | |
2132 | | - | |
| 2151 | + | |
| 2152 | + | |
2133 | 2153 | | |
2134 | 2154 | | |
2135 | 2155 | | |
| |||
2139 | 2159 | | |
2140 | 2160 | | |
2141 | 2161 | | |
2142 | | - | |
| 2162 | + | |
| 2163 | + | |
2143 | 2164 | | |
2144 | 2165 | | |
2145 | 2166 | | |
| |||
3997 | 4018 | | |
3998 | 4019 | | |
3999 | 4020 | | |
4000 | | - | |
4001 | | - | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
4002 | 4025 | | |
4003 | 4026 | | |
4004 | 4027 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments