Commit 39b904d
committed
Somewhat better error notes for box failures
At least we don't get
Note that cap is not included in {}
anymore. To make this even better we'd have to trace back a box
failure to the original types we were trying to compare. Right now
the box failure error notes are too disconnected from the rest. But
they become clearer when one compiles with -explain.1 parent 48f6cca commit 39b904d
File tree
5 files changed
+55
-7
lines changed- compiler/src/dotty/tools/dotc
- cc
- core
- tests/neg-custom-args/captures
5 files changed
+55
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| |||
1328 | 1331 | | |
1329 | 1332 | | |
1330 | 1333 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1334 | 1340 | | |
1335 | 1341 | | |
1336 | 1342 | | |
1337 | 1343 | | |
1338 | 1344 | | |
1339 | | - | |
| 1345 | + | |
| 1346 | + | |
1340 | 1347 | | |
1341 | 1348 | | |
1342 | 1349 | | |
| |||
1377 | 1384 | | |
1378 | 1385 | | |
1379 | 1386 | | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1380 | 1392 | | |
1381 | 1393 | | |
1382 | 1394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2915 | 2915 | | |
2916 | 2916 | | |
2917 | 2917 | | |
2918 | | - | |
2919 | | - | |
| 2918 | + | |
| 2919 | + | |
2920 | 2920 | | |
2921 | 2921 | | |
2922 | 2922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments