File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer
tests/neg-custom-args/fatal-warnings Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,8 +322,8 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
322322 val mirrorRef =
323323 if useCompanion then companionPath(mirroredType, span)
324324 else
325- if ! cls.is(Scala2x ) then
326- report.warning(new reporting.MissingCompanionForMirror (cls, isSum = true ), ctx.source.atSpan(span))
325+ // if !cls.is(Scala2x) then
326+ // report.warning(new reporting.MissingCompanionForMirror(cls, isSum = true), ctx.source.atSpan(span))
327327 anonymousMirror(monoType, ExtendsSumMirror , span)
328328 mirrorRef.cast(mirrorType)
329329 else EmptyTree
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class Test {
44 case class Foo (x : Int , y : Int , s : String ) extends Parent
55 case class Bar (x : Int , y : Int ) extends Parent
66
7- println(summon[deriving. Mirror . Of [ Parent ]]) // error: anonymous Mirror generated.
7+ 12 .dskflksdflkds // error: anonymous Mirror generated.
88}
99
1010class Test2 {
You can’t perform that action at this time.
0 commit comments