Skip to content

Commit

Permalink
Add sbt test for scala2-library-cc-tasty (#19938)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki authored Mar 13, 2024
2 parents 3901279 + 85ddd96 commit 3680925
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,7 @@ object Build {
(`scala3-compiler-bootstrapped` / publishLocalBin),
(`scala3-library-bootstrapped` / publishLocalBin),
(`scala2-library-tasty` / publishLocal),
(`scala2-library-cc-tasty` / publishLocal),
(`scala3-library-bootstrappedJS` / publishLocalBin),
(`tasty-core-bootstrapped` / publishLocalBin),
(`scala3-staging` / publishLocalBin),
Expand Down
4 changes: 4 additions & 0 deletions sbt-test/sbt-dotty/scala2-library-cc-tasty/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scalaVersion := sys.props("plugin.scalaVersion")

libraryDependencies += "org.scala-lang" %% "scala2-library-cc-tasty-experimental" % scalaVersion.value
scalacOptions += "-Yscala2-unpickler:never" // check that we do not load symbol from the Scala 2 library classfiles (use TASTy)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package hello

@main def hello: Unit =
println(Some("Hello world!")) // load Some form the Scala 2 library TASTy
1 change: 1 addition & 0 deletions sbt-test/sbt-dotty/scala2-library-cc-tasty/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> run

0 comments on commit 3680925

Please sign in to comment.