Commit 9066923
authored
Do not enter Scala 2 extension methods and let dotty "generate" them (#22519)
Scala 2 generates extension methods for Value Classes before pickling
while Scala 3 generates them after.
Now that we are working on compiling the Scala 2 stdlib with dotty
(#22480), and therefore generating tasty files for the stdlib, we will
have to distinguish between scala 2 that was unpickled and scala 2 code
coming from tasty. For that, we currently have a flag, but it is not
very useful apart from some very specific details where a workaround
exists. This PR, removes one of 2 places where this flag is used. The
[second
place](https://github.com/scala/scala3/blob/aa9db1f682de634743af6d7077d5ed752430a487/compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala#L51)
will be removed once we inline the missing symbol in `Predef.scala`
(after #22480) is merged.File tree
2 files changed
+12
-7
lines changed- compiler/src/dotty/tools/dotc
- core/unpickleScala2
- transform
2 files changed
+12
-7
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
539 | 546 | | |
540 | 547 | | |
541 | 548 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
0 commit comments