Skip to content

Commit 2d281f4

Browse files
Merge pull request #8154 from dotty-staging/fix-sbt-dotty-tasty-inspector-example-project
Fix sbt-dotty tasty-inspector-example-project
2 parents 7724627 + 5e75130 commit 2d281f4

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

sbt-dotty/sbt-test/sbt-dotty/tasty-consumer-example-project/app/Main.scala

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package hello
2+
3+
import scala.tasty.Reflection
4+
import scala.tasty.inspector.TastyInspector
5+
6+
object Main extends App {
7+
8+
val inspector = new TastyInspector {
9+
protected def processCompilationUnit(reflect: Reflection)(root: reflect.Tree): Unit = {
10+
import reflect._
11+
val tastyStr = root.show
12+
println(tastyStr)
13+
}
14+
}
15+
16+
inspector.inspect("", List("lib.Foo"))
17+
18+
}

0 commit comments

Comments
 (0)