diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 960e1585f..797b32924 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,15 @@ jobs: steps: - uses: actions/checkout@v3 - run: ./bin/scalafmt --test + cross-compilation: + name: Cross Compilation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: coursier/setup-action@v1.2.0 + with: + app: sbt + - run: sbt +compile test: strategy: fail-fast: false diff --git a/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala b/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala index 6cffcf200..cdeda615a 100644 --- a/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala +++ b/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala @@ -6,6 +6,7 @@ import java.{util => ju} import scala.jdk.CollectionConverters._ import scala.tools.nsc.reporters.StoreReporter import scala.util.control.NonFatal +import scala.annotation final class ExpressionCompilerBridge { def run( @@ -31,7 +32,7 @@ final class ExpressionCompilerBridge { ) ++ options :+ sourceFile.toString val command = new CompilerCommand(args, errorConsumer.accept(_)) - val reporter = new StoreReporter(command.settings) + val reporter = new StoreReporter(): @annotation.nowarn() val global = new ExpressionGlobal( command.settings, reporter,