Skip to content

Commit 5460cac

Browse files
Add placeholder implementation for tasty reflect..
..ion on TypeOf.
1 parent 9cd737d commit 5460cac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/scala/tasty/reflect/Printers.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ trait Printers
323323
case Type.TypeLambda(argNames, argBounds, resType) =>
324324
// resType is not printed to avoid cycles
325325
this += "Type.TypeLambda(" ++= argNames += ", " ++= argBounds += ", _)"
326+
case Type.TypeOf(underlyingTp, tree) =>
327+
this += "Type.TypeOf(" += underlyingTp += ", " += tree += ")"
326328
case TypeBounds(lo, hi) =>
327329
this += "TypeBounds(" += lo += ", " += hi += ")"
328330
case NoPrefix() =>
@@ -1567,6 +1569,9 @@ trait Printers
15671569
case Type.RecursiveThis(_) =>
15681570
this += highlightTypeDef("this", color)
15691571

1572+
case Type.TypeOf(_, _) =>
1573+
this += "Any" // TODO
1574+
15701575
case _ =>
15711576
throw new MatchError(tpe.show)
15721577
}

0 commit comments

Comments
 (0)