Skip to content

Commit 3680925

Browse files
Add sbt test for scala2-library-cc-tasty (#19938)
2 parents 3901279 + 85ddd96 commit 3680925

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

project/Build.scala

+1
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,7 @@ object Build {
19201920
(`scala3-compiler-bootstrapped` / publishLocalBin),
19211921
(`scala3-library-bootstrapped` / publishLocalBin),
19221922
(`scala2-library-tasty` / publishLocal),
1923+
(`scala2-library-cc-tasty` / publishLocal),
19231924
(`scala3-library-bootstrappedJS` / publishLocalBin),
19241925
(`tasty-core-bootstrapped` / publishLocalBin),
19251926
(`scala3-staging` / publishLocalBin),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
scalaVersion := sys.props("plugin.scalaVersion")
2+
3+
libraryDependencies += "org.scala-lang" %% "scala2-library-cc-tasty-experimental" % scalaVersion.value
4+
scalacOptions += "-Yscala2-unpickler:never" // check that we do not load symbol from the Scala 2 library classfiles (use TASTy)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package hello
2+
3+
@main def hello: Unit =
4+
println(Some("Hello world!")) // load Some form the Scala 2 library TASTy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> run

0 commit comments

Comments
 (0)