From 5f1656e7e72d81c597dac3dbe0ed3f08ca458ded Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Tue, 4 Feb 2025 23:05:30 +0100 Subject: [PATCH] chore: better rephrasing of the comment Co-authored-by: Guillaume Martres --- .../dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala b/compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala index c5681abf20fd..25245f5ca1b6 100644 --- a/compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala @@ -536,8 +536,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas // We discard the private val representing a case accessor. We only enter the case accessor def. // We do need to load these symbols to read properly unpickle the annotations on the symbol (see sbt-test/scala2-compat/i19421). !flags.isAllOf(CaseAccessor | PrivateLocal, butNot = Method) && - // We don't enter Value Classes' extension methods from pickles, but we do - // generate in the ExtensionMethods phase, at the same time as we do for Scala 3 + // Skip entering extension methods: they will be recreated by the ExtensionMethods phase. // Same trick is used by tasty-query (see //https://github.com/scalacenter/tasty-query/blob/fdefadcabb2f21d5c4b71f728b81c68f6fddcc0f/tasty-query/shared/src/main/scala/tastyquery/reader/pickles/PickleReader.scala#L261-L273 //)