Skip to content

Commit 92e7e59

Browse files
committed
Fix tasty printer
1 parent 3faa1f4 commit 92e7e59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/run/tasty-macro-assert/quoted_1.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ object Asserts {
3838
tree match {
3939
case Apply(Select(OpsTree(left), op, _), right :: Nil) =>
4040
// FIXME splice the threes directly
41-
val lExpr = TastyPrinter.stringOfTree(tasty)(left).toExpr
42-
val rExpr = TastyPrinter.stringOfTree(tasty)(right).toExpr
41+
val printer = new TastyPrinter(tasty)
42+
val lExpr = printer.stringOfTree(left).toExpr
43+
val rExpr = printer.stringOfTree(right).toExpr
4344
op match {
4445
case "===" => '(assertEquals(~lExpr, ~rExpr))
4546
case "!==" => '(assertNotEquals(~lExpr, ~rExpr))

0 commit comments

Comments
 (0)