Skip to content

Commit 75ab830

Browse files
committed
temp test
1 parent a41c598 commit 75ab830

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Synthesizer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/neg-custom-args/fatal-warnings/i10997.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1010
class Test2 {

0 commit comments

Comments
 (0)