10000 Regression in scaladoc compilation when using Scala 3 definitions · Issue #12955 · scala/bug · GitHub
[go: up one dir, main page]

Skip to content
Regression in scaladoc compilation when using Scala 3 definitions #12955
@WojciechMazur

Description

@WojciechMazur

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"

  1. Define ADT in Scala 3, create a jar out of it
package testlib

enum ADT:
  case SingletonCase
  case ClassCase(x: String)
  1. 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"))
  }
}
  1. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0