Skip to content

scala.MatchError: LazyRef(...) (of class dotty.tools.dotc.core.Types$LazyRef) #12327

@xuwei-k

Description

@xuwei-k

Compiler version

  • 3.0.0-RC3
  • 3.0.1-RC1-bin-20210503-98ecc10-NIGHTLY

Minimized code

build.sbt

scalaVersion := "3.0.0-RC3"

project/build.properties

sbt.version=1.5.1

Foo.scala

package example

trait Foo[A]

object Foo {
  implicit def javaEnumInstance[A <: java.lang.Enum[A]]: Foo[A] =
    ???
}

Output

run sbt doc

[warn] -- Warning: Foo.scala:6:15 -----------------------------------------------------
[warn] 6 |  implicit def javaEnumInstance[A <: java.lang.Enum[A]]: Foo[A] =
[warn]   |  ^
[warn]   |scala.MatchError: LazyRef(...) (of class dotty.tools.dotc.core.Types$LazyRef)
[warn]   |	at dotty.tools.scaladoc.tasty.TypesSupport.dotty$tools$scaladoc$tasty$TypesSupport$$inner(TypesSupport.scala:262)
[warn]   |	at dotty.tools.scaladoc.tasty.TypesSupport.inner$$anonfun$5(TypesSupport.scala:190)
[warn]   |	at scala.collection.immutable.List.map(List.scala:246)
[warn]   |	at dotty.tools.scaladoc.tasty.TypesSupport.dotty$tools$scaladoc$tasty$TypesSupport$$inner(TypesSupport.scala:190)
[warn] 7 |    ???
[warn] two warnings found
[info] Main Scala API documentation successful.

Expectation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions