@@ -25,13 +25,13 @@ class QuoteContext(val tasty: scala.tasty.Reflection) {
2525 /** Report an error at the position of the macro expansion */
2626 def error (msg : => String ): Unit = {
2727 import tasty .{_ , given }
28- tasty.error(msg, rootPosition)( given rootContext )
28+ tasty.error(msg, rootPosition)
2929 }
3030
3131 /** Report an error at the on the position of `expr` */
32- def error (msg : => String , expr : Expr [_ ]): Unit = {
32+ def error (msg : => String , expr : Expr [Any ]): Unit = {
3333 import tasty .{_ , given }
34- tasty.error(msg, expr.unseal.pos)( given rootContext )
34+ tasty.error(msg, expr.unseal.pos)
3535 }
3636
3737 /** Report an error at the position of the macro expansion and throws a StopQuotedContext */
@@ -40,21 +40,21 @@ class QuoteContext(val tasty: scala.tasty.Reflection) {
4040 throw new StopQuotedContext
4141 }
4242 /** Report an error at the on the position of `expr` and throws a StopQuotedContext */
43- def throwError (msg : => String , expr : Expr [_ ]): Nothing = {
43+ def throwError (msg : => String , expr : Expr [Any ]): Nothing = {
4444 error(msg, expr)
4545 throw new StopQuotedContext
4646 }
4747
4848 /** Report a warning */
4949 def warning (msg : => String ): Unit = {
5050 import tasty .{_ , given }
51- tasty.warning(msg, rootPosition)( given rootContext )
51+ tasty.warning(msg, rootPosition)
5252 }
5353
5454 /** Report a warning at the on the position of `expr` */
5555 def warning (msg : => String , expr : Expr [_]): Unit = {
5656 import tasty .{_ , given }
57- tasty.warning(msg, expr.unseal.pos)( given rootContext )
57+ tasty.warning(msg, expr.unseal.pos)
5858 }
5959
6060}
0 commit comments