-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Closed
Copy link
Labels
Milestone
Description
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.