Commit 8485740
committed
[CS] Use correct DeclContext when solving initializations
Use the PatternBindingInitializer context if we
have one. This also uncovered a parser issue where
we would mistakenly create a
PatternBindingInitializer in top-level code after
parsing the initializers.1 parent 47f7a31 commit 8485740
File tree
6 files changed
+14
-14
lines changed- include/swift/Sema
- lib
- Parse
- Sema
6 files changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8234 | 8234 | | |
8235 | 8235 | | |
8236 | 8236 | | |
8237 | | - | |
| 8237 | + | |
8238 | 8238 | | |
8239 | 8239 | | |
8240 | 8240 | | |
| |||
8249 | 8249 | | |
8250 | 8250 | | |
8251 | 8251 | | |
8252 | | - | |
| 8252 | + | |
8253 | 8253 | | |
8254 | 8254 | | |
8255 | 8255 | | |
8256 | 8256 | | |
8257 | 8257 | | |
8258 | | - | |
8259 | 8258 | | |
8260 | 8259 | | |
8261 | 8260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4553 | 4553 | | |
4554 | 4554 | | |
4555 | 4555 | | |
4556 | | - | |
| 4556 | + | |
4557 | 4557 | | |
4558 | 4558 | | |
4559 | 4559 | | |
| |||
4876 | 4876 | | |
4877 | 4877 | | |
4878 | 4878 | | |
4879 | | - | |
| 4879 | + | |
4880 | 4880 | | |
4881 | 4881 | | |
4882 | 4882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
| 754 | + | |
756 | 755 | | |
757 | 756 | | |
758 | 757 | | |
| |||
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
767 | | - | |
768 | | - | |
| 766 | + | |
769 | 767 | | |
770 | 768 | | |
771 | 769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
824 | | - | |
| 824 | + | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
| |||
0 commit comments