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):
322
322
val mirrorRef =
323
323
if useCompanion then companionPath(mirroredType, span)
324
324
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))
327
327
anonymousMirror(monoType, ExtendsSumMirror , span)
328
328
mirrorRef.cast(mirrorType)
329
329
else EmptyTree
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class Test {
4
4
case class Foo (x : Int , y : Int , s : String ) extends Parent
5
5
case class Bar (x : Int , y : Int ) extends Parent
6
6
7
- println(summon[deriving. Mirror . Of [ Parent ]]) // error: anonymous Mirror generated.
7
+ 12 .dskflksdflkds // error: anonymous Mirror generated.
8
8
}
9
9
10
10
class Test2 {
You can’t perform that action at this time.
0 commit comments