Commit fbb44bf
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 fc30104 commit fbb44bf
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 | |
|---|---|---|---|
| |||
5049 | 5049 | | |
5050 | 5050 | | |
5051 | 5051 | | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
5052 | 5055 | | |
5053 | 5056 | | |
5054 | 5057 | | |
| |||
| 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 | | |
| |||
2123 | 2127 | | |
2124 | 2128 | | |
2125 | 2129 | | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2126 | 2145 | | |
2127 | 2146 | | |
2128 | 2147 | | |
2129 | | - | |
| 2148 | + | |
| 2149 | + | |
2130 | 2150 | | |
2131 | 2151 | | |
2132 | 2152 | | |
| |||
2136 | 2156 | | |
2137 | 2157 | | |
2138 | 2158 | | |
2139 | | - | |
| 2159 | + | |
| 2160 | + | |
2140 | 2161 | | |
2141 | 2162 | | |
2142 | 2163 | | |
| |||
3986 | 4007 | | |
3987 | 4008 | | |
3988 | 4009 | | |
3989 | | - | |
3990 | | - | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
3991 | 4014 | | |
3992 | 4015 | | |
3993 | 4016 | | |
| |||
| 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