Commit c9b8e7a
committed
Do not copy annotations from a class to its synthetic companion object.
Normally, annotations applied to a class have no business being
replicated on a synthetic companion object. One exception was the
`@alpha` method, which is supposed to apply as well. Instead of
trying to identify those annotations without the symbols during
`Desugar`, we change `erasedName` to go look on the companion class
of synthetic module classes.1 parent c104e9b commit c9b8e7a
File tree
2 files changed
+5
-1
lines changed- compiler/src/dotty/tools/dotc
- ast
- core
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
| |||
0 commit comments