Skip to content

Commit 15bd274

Browse files
committed
Improve cast failure message
1 parent 5ee8777 commit 15bd274

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src-bootstrapped/scala/quoted/Expr.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ abstract class Expr[+T] private[scala] {
3737
else
3838
throw new scala.tasty.reflect.ExprCastError(
3939
s"""Expr: ${tree.show}
40+
|of type: ${tree.tpe.show}
4041
|did not conform to type: ${expectedType.show}
4142
|""".stripMargin
4243
)

0 commit comments

Comments
 (0)