File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 44 | Overloaded or recursive method impl needs return type
55 |
66 | longer explanation available when compiling with `-explain`
7- -- Error: tests/neg/i14772.scala:8:12 ----------------------------------------------------------------------------------
8- 8 | Expr(()) // error
9- | ^
10- | no given instance of type quoted.ToExpr[Unit] was found for parameter x$2 of method apply in object Expr.
11- | I found:
12- |
13- | quoted.ToExpr.ClassToExpr[T]
14- |
15- | But given instance ClassToExpr in object ToExpr does not match type quoted.ToExpr[Unit].
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ object A {
55
66 def impl (a : Expr [Any ])(using Quotes )/* : Expr[Any]*/ = {
77 foo(a) // error
8- Expr (()) // error
8+ ???
99 }
1010}
You can’t perform that action at this time.
0 commit comments