-
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
Context Bounds for Polymorphic Functions #21643
Merged
WojciechMazur
merged 19 commits into
scala:main
from
dotty-staging:context-bounds-for-poly-functions
Nov 19, 2024
+274
−68
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a76470f
Implement basic version of desugaring context bounds for poly functions
KacperFKorban 8dc68c3
Handle named context bounds in poly function context bound desugaring
KacperFKorban 3ac5cec
Correctly-ish desugar poly function context bounds in function types
KacperFKorban 408aa74
Fix pickling issue
KacperFKorban 134c015
Hide context bounds expansion for poly functions under modularity fea…
KacperFKorban 309034e
Small cleanup
KacperFKorban 64bd03e
Add more test cases
KacperFKorban 5196efd
Change the implementation of context bound expansion for poly functio…
KacperFKorban 5f0d4a7
Add support for some type aliases, when expanding context bounds for …
KacperFKorban a736592
Make the expandion of context bounds for poly types slightly more ele…
KacperFKorban 0af8397
Add more aliases tests for context bounds with poly functions
KacperFKorban 9c66069
Bring back the restriction for requiring value parameters in poly fun…
KacperFKorban ec6d7ef
Cleanup dead code
KacperFKorban dfa9240
Reuse addEvidenceParams logic, but no aliases
KacperFKorban 7755e3b
Cleanup context bounds for poly functions implementation, make the im…
KacperFKorban 24e3fa0
More cleanup of poly context bound desugaring
KacperFKorban f292ac5
Short circuit adding evidence params to poly functions, when there ar…
KacperFKorban f9db9fa
Add a run test for poly context bounds; cleanup typer changes
KacperFKorban 952eff7
Cleanup context bounds for poly functions implementation after review
KacperFKorban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this need the modularity import? isn't it part of SIP-64 so should be enabled without a feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I assumed that, since it was meant to be pushed to the next minor, it should be under a language import.
If it's not, can we still do another RC/backport?
@WojciechMazur
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should fix that in the followup and backport to RC2.
This PR was explicitly marked as one of the things that should be included in 3.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#22019