Skip to content

Commit 484c9c6

Browse files
committed
Fix flaky test
1 parent 0a6f9bb commit 484c9c6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

tests/neg/i14772.check

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,3 @@
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].

tests/neg/i14772.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)