Skip to content

Commit ecfdd11

Browse files
authored
Merge pull request #9698 from dotty-staging/improve-cast-failure-message
Improve cast failure message
2 parents 039f84e + 15bd274 commit ecfdd11

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)