Commit 956c330
committed
[Constraint solver] Encode thrown error type in references to subscripts
A reference to a subscript (whether instance or static) produces a
function type, which is then applied as part of an application
constraint. Make sure that we encode whether the subscript can throw,
and the thrown error type if present, in that function type. This lets
us correctly treat subscripts as a potential throw sites.1 parent 8ad137f commit 956c330
2 files changed
+43
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2674 | 2674 | | |
2675 | 2675 | | |
2676 | 2676 | | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
2677 | 2689 | | |
2678 | 2690 | | |
2679 | 2691 | | |
| |||
2687 | 2699 | | |
2688 | 2700 | | |
2689 | 2701 | | |
2690 | | - | |
2691 | | - | |
| 2702 | + | |
2692 | 2703 | | |
2693 | 2704 | | |
2694 | 2705 | | |
| |||
2720 | 2731 | | |
2721 | 2732 | | |
2722 | 2733 | | |
2723 | | - | |
2724 | | - | |
2725 | 2734 | | |
2726 | 2735 | | |
2727 | 2736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
| |||
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
236 | 265 | | |
0 commit comments