Skip to content

Commit

Permalink
fix scalaversion in build.sbt and import dottyAbstractFile alias
Browse files Browse the repository at this point in the history
  • Loading branch information
rvacaru committed Aug 2, 2022
1 parent 83ec750 commit 2d046f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ lazy val reflect = projectMatrix
)
else
List(
"org.scala-lang" %% "scala3-compiler" % "3.1.3"
"org.scala-lang" %% "scala3-compiler" % scalaVersion.value
)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import dotty.tools.dotc.Run
import dotty.tools.dotc.util.SourceFile
import dotty.tools.dotc.core.Contexts.NoContext.given_Context
import dotty.tools.dotc.reporting.StoreReporter
import dotty.tools.io.AbstractFile as DottyAbstractFile

import scala.reflect.io.VirtualDirectory
import scala.reflect.io.AbstractFile
Expand Down Expand Up @@ -42,7 +43,7 @@ class RuleCompiler(
run.compileSources(
List(
new SourceFile(
dotty.tools.io.AbstractFile.getFile(input.path),
DottyAbstractFile.getFile(input.path),
input.chars
)
)
Expand Down

0 comments on commit 2d046f9

Please sign in to comment.