Closed PaulCoral closed 3 years ago
In tasty, the extension
extension [A](thiz:A)
def toTuple2[B](that:B):(A,B) = thiz -> that /* <- HERE */
Is represented as
def toTuple2[A](thiz:A)[B](that:B):(A,B) = thiz -> that /* <- HERE */
To get the type parameters we need to drop the parameters until the thiz parameter and then possibly drop contextual/implicit parameters, then it might be followed by the desired type parameters.
Is anyone from the doctool team interested in taking this one?
Yes, me :)
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
then run
sbt doc
, when finished opentarget/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 methodtoTuple2
function to be[B]