We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4088c22 commit 8ac6c6aCopy full SHA for 8ac6c6a
compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala
@@ -700,8 +700,9 @@ class SyntheticMembers(thisPhase: DenotTransformer) {
700
val clazz = ctx.owner.asClass
701
val syntheticMembers = serializableObjectMethod(clazz) ::: serializableEnumValueMethod(clazz) ::: caseAndValueMethods(clazz)
702
checkInlining(syntheticMembers)
703
- addMirrorSupport(
704
- cpy.Template(impl)(body = syntheticMembers ::: impl.body))
+ val impl1 = cpy.Template(impl)(body = syntheticMembers ::: impl.body)
+ if ctx.settings.Yscala2Stdlib.value then impl1
705
+ else addMirrorSupport(impl1)
706
}
707
708
private def checkInlining(syntheticMembers: List[Tree])(using Context): Unit =
0 commit comments