Skip to content

Commit 5f1656e

Browse files
hamzaremmalsmarter
andauthored
chore: better rephrasing of the comment
Co-authored-by: Guillaume Martres <[email protected]>
1 parent a641aeb commit 5f1656e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
536536
// We discard the private val representing a case accessor. We only enter the case accessor def.
537537
// We do need to load these symbols to read properly unpickle the annotations on the symbol (see sbt-test/scala2-compat/i19421).
538538
!flags.isAllOf(CaseAccessor | PrivateLocal, butNot = Method) &&
539-
// We don't enter Value Classes' extension methods from pickles, but we do
540-
// generate in the ExtensionMethods phase, at the same time as we do for Scala 3
539+
// Skip entering extension methods: they will be recreated by the ExtensionMethods phase.
541540
// Same trick is used by tasty-query (see
542541
//https://github.com/scalacenter/tasty-query/blob/fdefadcabb2f21d5c4b71f728b81c68f6fddcc0f/tasty-query/shared/src/main/scala/tastyquery/reader/pickles/PickleReader.scala#L261-L273
543542
//)

0 commit comments

Comments
 (0)