File tree 4 files changed +10
-0
lines changed
sbt-test/sbt-dotty/scala2-library-cc-tasty
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1920,6 +1920,7 @@ object Build {
1920
1920
(`scala3-compiler-bootstrapped` / publishLocalBin),
1921
1921
(`scala3-library-bootstrapped` / publishLocalBin),
1922
1922
(`scala2-library-tasty` / publishLocal),
1923
+ (`scala2-library-cc-tasty` / publishLocal),
1923
1924
(`scala3-library-bootstrappedJS` / publishLocalBin),
1924
1925
(`tasty-core-bootstrapped` / publishLocalBin),
1925
1926
(`scala3-staging` / publishLocalBin),
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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 number Diff line number Diff line change
1
+ > run
You can’t perform that action at this time.
0 commit comments