From 99a59baa43988e375d0b59131457b70915f9c650 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 1 Sep 2020 13:42:30 +0200 Subject: [PATCH] Fix SBT test for TastyInspector --- .../tasty-inspector-example-project/app/Main.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbt-dotty/sbt-test/sbt-dotty/tasty-inspector-example-project/app/Main.scala b/sbt-dotty/sbt-test/sbt-dotty/tasty-inspector-example-project/app/Main.scala index f12d0ed5e140..00a95678753b 100644 --- a/sbt-dotty/sbt-test/sbt-dotty/tasty-inspector-example-project/app/Main.scala +++ b/sbt-dotty/sbt-test/sbt-dotty/tasty-inspector-example-project/app/Main.scala @@ -1,13 +1,13 @@ package hello -import scala.tasty.Reflection +import scala.quoted._ import scala.tasty.inspector.TastyInspector object Main extends App { val inspector = new TastyInspector { - protected def processCompilationUnit(reflect: Reflection)(root: reflect.Tree): Unit = { - import reflect.{given _, _} + protected def processCompilationUnit(using QuoteContext)(root: qctx.tasty.Tree): Unit = { + import qctx.tasty._ val tastyStr = root.show println(tastyStr) }