Skip to content

Commit 86ea3d7

Browse files
committed
Fix test
We need the `erased` on foo because otherwise we get the error -------------------------------- 6 | transparent def foo(): Unit = foo2() | ^^^^^^ |Could not find macro class Foo$ in classpath. The most common reason for that is that you cannot use transparent macro implementations in the same compilation run that defines them
1 parent 648b8a4 commit 86ea3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pos/i4773.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import scala.quoted._
33
object Foo {
44
transparent def foo2(): Unit = ~foo2Impl()
55
def foo2Impl(): Expr[Unit] = '()
6-
transparent def foo(): Unit = foo2()
6+
erased transparent def foo(): Unit = foo2()
77
}

0 commit comments

Comments
 (0)