Skip to content

Commit ba8fb61

Browse files
authored
Merge pull request #6839 from dotty-staging/fix-#5547
Fix #5547: Add regression test
2 parents ca5916e + 058105b commit ba8fb61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pos/i5547.scala

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import scala.quoted._
2+
3+
object scalatest {
4+
inline def assert1(condition: => Boolean): Unit =
5+
${assertImpl('condition, '{""})}
6+
7+
inline def assert2(condition: => Boolean): Unit =
8+
${ assertImpl('condition, "".toExpr) }
9+
10+
def assertImpl(condition: Expr[Boolean], clue: Expr[Any]) given QuoteContext: Expr[Unit] =
11+
'{}
12+
}

0 commit comments

Comments
 (0)