Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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