Skip to content

Commit 7eeb00a

Browse files
committed
Avoid printing encoded TASTY in TastyExpr and TastyType
1 parent ea14aab commit 7eeb00a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library/src/scala/quoted/TastyExpr.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ package scala.quoted
33
import scala.runtime.quoted.Unpickler.Pickled
44

55
/** An Expr backed by a pickled TASTY tree */
6-
final case class TastyExpr[T](tasty: Pickled, args: Seq[Any]) extends Expr[T] with TastyQuoted
6+
final case class TastyExpr[T](tasty: Pickled, args: Seq[Any]) extends Expr[T] with TastyQuoted {
7+
override def toString(): String = s"TastyExpr(<TASTY>, $args)"
8+
}

library/src/scala/quoted/TastyType.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ package scala.quoted
33
import scala.runtime.quoted.Unpickler.Pickled
44

55
/** A Type backed by a pickled TASTY tree */
6-
final case class TastyType[T](tasty: Pickled, args: Seq[Any]) extends Type[T] with TastyQuoted
6+
final case class TastyType[T](tasty: Pickled, args: Seq[Any]) extends Type[T] with TastyQuoted {
7+
override def toString(): String = s"TastyType(<TASTY>, $args)"
8+
}

0 commit comments

Comments
 (0)