Skip to content

Fix #9339: Register doc of extension methods #9375

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

Merged
merged 1 commit into from
Jul 18, 2020

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki self-assigned this Jul 16, 2020
@nicolasstucki nicolasstucki linked an issue Jul 16, 2020 that may be closed by this pull request
@nicolasstucki nicolasstucki removed their assignment Jul 16, 2020
@nicolasstucki nicolasstucki requested review from abgruszecki and removed request for anatoliykmetyuk July 16, 2020 14:35
ctx
case _ =>
ctx
}
recur(expanded(origStat))
recur(expanded(origStat), 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This idx parameter looks really ugly and kludgy. Can't we instead add an origin parameter to recur which is usually the same as origStat but in the Thicket-ExtMethods case it's the appropriate element of t.methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That did not work, but I found a much simpler solution

@nicolasstucki nicolasstucki marked this pull request as ready for review July 17, 2020 13:36
Copy link
Contributor

@abgruszecki abgruszecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is definitely a nicer version.

@nicolasstucki nicolasstucki merged commit c753ca3 into scala:master Jul 18, 2020
@nicolasstucki nicolasstucki deleted the fix-#9339 branch July 18, 2020 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scala docs on extension methods
3 participants