@@ -25,13 +25,13 @@ class QuoteContext(val tasty: scala.tasty.Reflection) {
25
25
/** Report an error at the position of the macro expansion */
26
26
def error (msg : => String ): Unit = {
27
27
import tasty .{_ , given }
28
- tasty.error(msg, rootPosition)( given rootContext )
28
+ tasty.error(msg, rootPosition)
29
29
}
30
30
31
31
/** 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 = {
33
33
import tasty .{_ , given }
34
- tasty.error(msg, expr.unseal.pos)( given rootContext )
34
+ tasty.error(msg, expr.unseal.pos)
35
35
}
36
36
37
37
/** 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) {
40
40
throw new StopQuotedContext
41
41
}
42
42
/** 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 = {
44
44
error(msg, expr)
45
45
throw new StopQuotedContext
46
46
}
47
47
48
48
/** Report a warning */
49
49
def warning (msg : => String ): Unit = {
50
50
import tasty .{_ , given }
51
- tasty.warning(msg, rootPosition)( given rootContext )
51
+ tasty.warning(msg, rootPosition)
52
52
}
53
53
54
54
/** Report a warning at the on the position of `expr` */
55
55
def warning (msg : => String , expr : Expr [_]): Unit = {
56
56
import tasty .{_ , given }
57
- tasty.warning(msg, expr.unseal.pos)( given rootContext )
57
+ tasty.warning(msg, expr.unseal.pos)
58
58
}
59
59
60
60
}
0 commit comments