File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/quoted
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Toolbox {
25
25
case expr : LiftedExpr [T ] =>
26
26
expr.value
27
27
case expr : TastyTreeExpr [Tree ] @ unchecked =>
28
- throw new scala.quoted. QuoteError ( " Can't run and scala.quoted. Expr coming from a macro argument" )
28
+ throw new Exception ( " Cannot call `Expr. run` on an ` Expr` that comes from an inline macro argument. " )
29
29
case _ =>
30
30
new QuoteDriver ().run(expr, runSettings)
31
31
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ object Exprs {
48
48
* These expressions are used for arguments of inline macros. They contain and actual tree
49
49
* from the program that is being expanded by the macro.
50
50
*
51
- * May contain references to code defined outside this Expr instance.
51
+ * May contain references to code defined outside this TastyTreeExpr instance.
52
52
*/
53
53
final class TastyTreeExpr [Tree ](val tree : Tree ) extends quoted.Expr [Any ] {
54
54
override def toString : String = s " Expr(<tasty tree>) "
You can’t perform that action at this time.
0 commit comments