Skip to content

Discrepancy in signature of Tuple.splitAt between api website and implementation #16084

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

Closed
Sporarum opened this issue Sep 21, 2022 · 3 comments · Fixed by #17213
Closed

Discrepancy in signature of Tuple.splitAt between api website and implementation #16084

Sporarum opened this issue Sep 21, 2022 · 3 comments · Fixed by #17213
Assignees
Milestone

Comments

@Sporarum
Copy link
Contributor

(Also on 3.2.0)
https://dotty.epfl.ch/api/scala/Tuple.html#
Displays:

inline def splitAt[This >: Tuple <: Tuple](n: Int): (This, Int)

Whereas the signature in the implementation is:

inline def splitAt[This >: this.type <: Tuple](n: Int): Split[This, n.type]

https://github.com/lampepfl/dotty/blob/main/library/src/scala/Tuple.scala#L79

@Sporarum
Copy link
Contributor Author

@Florian3k's PR should be removed from "Development" (on the right), as it doesn't solve the issue fully

Alternatively, it can stay like that if a more precise issue is open

@Florian3k
Copy link
Contributor

I've created separate issue for that: #17226

@Sporarum
Copy link
Contributor Author

Perfect, thanks!

therefore this issue can be closed as soon as the PR is merged

@Kordyjan Kordyjan added this to the 3.4.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants