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)
2
2
`reflect.SourceFile.current` cannot be called within the TASTy ispector
Original file line number Diff line number Diff line change 1
1
import scala .quoted ._
2
2
import scala .tasty .inspector ._
3
3
4
+ import java .io .File .separatorChar
5
+
4
6
opaque type PhoneNumber = String
5
7
6
8
case class I8163 () {
@@ -23,7 +25,7 @@ object Test {
23
25
class TestInspector () extends Inspector :
24
26
25
27
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, '/' ) ))
27
29
try
28
30
quotes.reflect.SourceFile .current
29
31
assert(false )
You can’t perform that action at this time.
0 commit comments