Skip to content

Commit 5ac3f48

Browse files
committed
Add missing cases
1 parent 82f954e commit 5ac3f48

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

compiler/test/dotc/pos-decompilation.blacklist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ i1776.scala
4747
i3638.scala
4848
i618.scala
4949

50-
# scala.MatchError: Type.RecursiveType
51-
i3647.scala
52-
5350
# Stackoverflow
5451
avoid.scala
5552
i1047.scala

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,12 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
924924
case Type.TypeLambda(params, _, _) => this += params(idx)
925925
}
926926

927+
case Type.RecursiveType(tpe) =>
928+
printType(tpe)
929+
930+
case Type.RecursiveThis(_) =>
931+
this += "this"
932+
927933
case _ =>
928934
throw new MatchError(tpe.show)
929935
}

0 commit comments

Comments
 (0)