Commit 6bd846a
committed
Special case dropping EnumValue in Namer
We now drop EnumValue just when inferring types of enum cases. This can be
done unconditionally since in any case every enum case extends Enum, which
extends Product and Serializable. EnumValue is just an invisible implementation
bundle.
This means we disable for now the more general handling in widenInferred.1 parent 9a887fe commit 6bd846a
File tree
4 files changed
+20
-4
lines changed- compiler/src/dotty/tools/dotc
- ast
- core
- typer
4 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1442 | 1453 | | |
1443 | 1454 | | |
1444 | 1455 | | |
| |||
1447 | 1458 | | |
1448 | 1459 | | |
1449 | 1460 | | |
1450 | | - | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1451 | 1464 | | |
1452 | 1465 | | |
1453 | 1466 | | |
| |||
0 commit comments