Commit 9f5a754
committed
[Sema] Ban placeholders in typed throws
This never worked correctly and would crash in SILGen, ban the use
of placeholder types. While here, ensure we replace any ErrorTypes
with holes when solving the closure in the constraint system.1 parent 71f8e68 commit 9f5a754
File tree
5 files changed
+29
-5
lines changed- lib/Sema
- test
- decl/func
- expr/closure
- stmt
5 files changed
+29
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2542 | 2542 | | |
2543 | 2543 | | |
2544 | 2544 | | |
2545 | | - | |
2546 | | - | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
2547 | 2550 | | |
2548 | 2551 | | |
2549 | 2552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6999 | 6999 | | |
7000 | 7000 | | |
7001 | 7001 | | |
7002 | | - | |
| 7002 | + | |
7003 | 7003 | | |
7004 | 7004 | | |
7005 | 7005 | | |
| |||
7011 | 7011 | | |
7012 | 7012 | | |
7013 | 7013 | | |
7014 | | - | |
| 7014 | + | |
7015 | 7015 | | |
7016 | 7016 | | |
7017 | 7017 | | |
| |||
7045 | 7045 | | |
7046 | 7046 | | |
7047 | 7047 | | |
7048 | | - | |
| 7048 | + | |
7049 | 7049 | | |
7050 | 7050 | | |
7051 | 7051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
418 | 420 | | |
419 | 421 | | |
420 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
0 commit comments