Skip to content

Commit

Permalink
Support source-future (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochala authored Jul 27, 2023
1 parent 68c5910 commit ee167dc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ object Instrument {
}

def apply(code: String, target: ScalaTarget): Either[InstrumentationFailure, String] = {
val runtimeImport = "import _root_.com.olegych.scastie.api.runtime._"
val runtimeImport = target match {
case Scala3(scalaVersion) => "import _root_.com.olegych.scastie.api.runtime.*"
case _ => "import _root_.com.olegych.scastie.api.runtime._"
}

val isScalaJs = target.targetType == ScalaTargetType.JS

Expand Down

0 comments on commit ee167dc

Please sign in to comment.