Skip to content
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

Add heuristic to support Context Bounds #13172

Merged
merged 3 commits into from
Aug 2, 2021

Conversation

romanowski
Copy link
Contributor

@romanowski romanowski commented Jul 27, 2021

We are looking for parameters that look like generated evidence parameters since we do not have information in TASTY how the tree looks originally.

Our approach is not perfect since we will document def foo[A](evidence$1: ClassTag[A]) = 1 as def foo[A: ClassTag] = 1 but this should be fine since behaviour of things with $ in the name is unspecified.

@romanowski
Copy link
Contributor Author

hopefully it is good enough for #13116

@romanowski
Copy link
Contributor Author

Real life example: https://scala3doc.virtuslab.com/pr-context-bounds/scala3/api/scala/collection/ArrayOps.html#++:-fffff732

@romanowski romanowski changed the title WIP: add heuristic to support Context Bounds Add heuristic to support Context Bounds Jul 28, 2021
Copy link
Contributor

@BarkingBad BarkingBad left a comment

Choose a reason for hiding this comment

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

Looks OK to me

@romanowski romanowski merged commit e604e36 into scala:master Aug 2, 2021
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 2023
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.

3 participants