File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tests/run-custom-args/tasty-inspector Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1- List(tastyPaths/I8163.class)
1+ List(/ tastyPaths/I8163.class)
22`reflect.SourceFile.current` cannot be called within the TASTy ispector
Original file line number Diff line number Diff line change 11import scala .quoted ._
22import scala .tasty .inspector ._
33
4+ import java .io .File .separatorChar
5+
46opaque type PhoneNumber = String
57
68case class I8163 () {
@@ -23,7 +25,7 @@ object Test {
2325class TestInspector () extends Inspector :
2426
2527 def inspect (using Quotes )(tastys : List [Tasty [quotes.type ]]): Unit =
26- println(tastys.map(_.path.split(" / tasty-inspector/ " ).last))
28+ println(tastys.map(_.path.split(" tasty-inspector" ).last.replace(separatorChar, '/' ) ))
2729 try
2830 quotes.reflect.SourceFile .current
2931 assert(false )
You can’t perform that action at this time.
0 commit comments