-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
scala/scala
#10700Closed
Copy link
Description
Reproduction steps
Scala version: 2.13.13
Tested with Scala 3 versions for cross compiled project: 3.3.1 and 3.3.2
reproduction-sbt.zip
run with sbt "base/publishLocal; projectC/publishLocal"
- Define ADT in Scala 3, create a jar out of it
package testlib
enum ADT:
case SingletonCase
case ClassCase(x: String)
- Define Scala 2 project that uses Scala 3 JAR
package app
object Main {
def main(args: Array[String]): Unit = {
println(testlib.ADT.SingletonCase)
println(testlib.ADT.ClassCase("foo"))
}
}
- Try to create documentation for Scala 2 project, (
sbt Compile/doc
)
Problem
Compilation fails with
error] stack trace is suppressed; run last projectC / Compile / doc for the full output
[error] (projectC / Compile / doc) scala.reflect.internal.Types$TypeError: Unsupported Scala 3 generic tuple type scala.Tuple in bounds of type MirroredElemTypes; found in scala.deriving.Mirror.<refinement>.
[error] Total time: 0 s, completed Feb 22, 2024, 11:42:57 AM
SethTisue