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 4
4
| Overloaded or recursive method impl needs return type
5
5
|
6
6
| 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 {
5
5
6
6
def impl (a : Expr [Any ])(using Quotes )/* : Expr[Any]*/ = {
7
7
foo(a) // error
8
- Expr (()) // error
8
+ ???
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments