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 a41c598 commit 646f236Copy full SHA for 646f236
compiler/src/dotty/tools/dotc/typer/Synthesizer.scala
@@ -322,8 +322,8 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
322
val mirrorRef =
323
if useCompanion then companionPath(mirroredType, span)
324
else
325
- if !cls.is(Scala2x) then
326
- report.warning(new reporting.MissingCompanionForMirror(cls, isSum = true), ctx.source.atSpan(span))
+ // if !cls.is(Scala2x) then
+ // report.warning(new reporting.MissingCompanionForMirror(cls, isSum = true), ctx.source.atSpan(span))
327
anonymousMirror(monoType, ExtendsSumMirror, span)
328
mirrorRef.cast(mirrorType)
329
else EmptyTree
0 commit comments