We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c87bd05 commit 20edebeCopy full SHA for 20edebe
compiler/src/dotty/tools/dotc/printing/Formatting.scala
@@ -33,9 +33,16 @@ object Formatting {
33
object ShowAny extends Show[Any]:
34
def show(x: Any): Shown = x
35
36
- class ShowImplicits2:
+ class ShowImplicits3:
37
given Show[Product] = ShowAny
38
39
+ class ShowImplicits2 extends ShowImplicits3:
40
+ given Show[ParamInfo] with
41
+ def show(x: ParamInfo) = x match
42
+ case x: Symbol => Show[x.type].show(x)
43
+ case x: LambdaParam => Show[x.type].show(x)
44
+ case _ => ShowAny
45
+
46
class ShowImplicits1 extends ShowImplicits2:
47
given Show[ImplicitRef] = ShowAny
48
given Show[Names.Designator] = ShowAny
0 commit comments