Commit b17435f
committed
Widen result types of implied methods for specificity testing
When testing specificity of methods, widen result type of
synthetic implied methods.
I tried widening the inferred result type of these methods
already in Namer instead, but this causes problems since
it can hide extension methods.1 parent b1a0234 commit b17435f
File tree
3 files changed
+67
-7
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
- tests/run
3 files changed
+67
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
616 | 619 | | |
617 | 620 | | |
618 | 621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1299 | 1326 | | |
1300 | | - | |
| 1327 | + | |
1301 | 1328 | | |
1302 | 1329 | | |
1303 | | - | |
| 1330 | + | |
1304 | 1331 | | |
1305 | | - | |
| 1332 | + | |
1306 | 1333 | | |
1307 | | - | |
| 1334 | + | |
1308 | 1335 | | |
1309 | 1336 | | |
1310 | 1337 | | |
1311 | 1338 | | |
1312 | 1339 | | |
1313 | 1340 | | |
1314 | | - | |
1315 | | - | |
| 1341 | + | |
| 1342 | + | |
1316 | 1343 | | |
1317 | 1344 | | |
1318 | 1345 | | |
| |||
| 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 | + | |
0 commit comments