Closed
Description
Compiler version
sbt 1.5.3 / scalaVersion 3.0.0 and 3.0.1-RC1
Minimized example
Start a new project sbt new scala/scala3.g8
/* src/main/scala/Main.scala */
@main def hello: Unit =
println(foo)
val foo: (Int,String) = 1.toTuple2("string")
extension [A](thiz:A)
def toTuple2[B](that:B):(A,B) = thiz -> that /* <- HERE */
then run sbt doc
, when finished open target/scala-3*/api/index.html
in a browser and look for package <empty>
.
Output
Expectation
Type parameter B
is not present. Expecting the type paremeter of the method toTuple2
function to be [B]