Skip to content

Commit 40b05e9

Browse files
committed
Fix CI failure in [test_windows_full]
1 parent 913d0a8 commit 40b05e9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
List(tastyPaths/I8163.class)
1+
List(/tastyPaths/I8163.class)
22
`reflect.SourceFile.current` cannot be called within the TASTy ispector

tests/run-custom-args/tasty-inspector/tastyPaths.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import scala.quoted._
22
import scala.tasty.inspector._
33

4+
import java.io.File.separatorChar
5+
46
opaque type PhoneNumber = String
57

68
case class I8163() {
@@ -23,7 +25,7 @@ object Test {
2325
class 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)

0 commit comments

Comments
 (0)