Skip to content

ScalaDoc : type parameter in extension method is wrong #12813

Closed
@PaulCoral

Description

@PaulCoral

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

image

Expectation

Type parameter B is not present. Expecting the type paremeter of the method toTuple2 function to be [B]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions