Skip to content

Commit d37aa55

Browse files
Fix #6739 test
There was an error in that test where you need a QuoteContext in scope to write quotes. The error did not manifest itself since a synthetic QuoteContext was generated for all inline methods from which it was required (disregarding whether they are meant as macro implementations or not). This behavior was wrong, however, (see #7407) and hence this test needs fixing.
1 parent 9220a24 commit d37aa55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg/i6739.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import scala.quoted._
33
inline def assert(expr: => Boolean): Unit =
44
${ assertImpl('expr) } // error: Macro cannot be implemented with an `inline` method
55

6-
inline def assertImpl(expr: Expr[Boolean]): Expr[Unit] = '{ println("Hello World") }
6+
inline def assertImpl(expr: Expr[Boolean])(given QuoteContext): Expr[Unit] = '{ println("Hello World") }

0 commit comments

Comments
 (0)