-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScalaDoc : type parameter in extension method is wrong #12813
Comments
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 :) |
KacperFKorban
added a commit
to KacperFKorban/dotty
that referenced
this issue
Jul 28, 2021
KacperFKorban
added a commit
to KacperFKorban/dotty
that referenced
this issue
Jul 28, 2021
KacperFKorban
added a commit
to KacperFKorban/dotty
that referenced
this issue
Jul 29, 2021
KacperFKorban
added a commit
to KacperFKorban/dotty
that referenced
this issue
Jul 30, 2021
KacperFKorban
added a commit
to KacperFKorban/dotty
that referenced
this issue
Jul 30, 2021
tanishiking
pushed a commit
to tanishiking/scala3
that referenced
this issue
Aug 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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]
The text was updated successfully, but these errors were encountered: