Skip to content

Commit 61c5149

Browse files
committed
RefinedPrinter: Pretty-print ErasedValueType
1 parent 04e787a commit 61c5149

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package printing
33

44
import core._
55
import Texts._, Types._, Flags._, Names._, Symbols._, NameOps._, Constants._
6+
import TypeErasure.ErasedValueType
67
import Contexts.Context, Scopes.Scope, Denotations._, SymDenotations._, Annotations.Annotation
78
import StdNames.nme
89
import ast.{Trees, untpd, tpd}
@@ -129,6 +130,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
129130
return toText(tp.info)
130131
case ExprType(result) =>
131132
return "=> " ~ toText(result)
133+
case ErasedValueType(clazz, underlying) =>
134+
return "ErasedValueType(" ~ toText(clazz.typeRef) ~ ", " ~ toText(underlying) ~ ")"
132135
case tp: ClassInfo =>
133136
return toTextParents(tp.instantiatedParents) ~ "{...}"
134137
case JavaArrayType(elemtp) =>

0 commit comments

Comments
 (0)