-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Typeclass experiments refactored #20061
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
odersky
merged 36 commits into
scala:main
from
dotty-staging:typeclass-experiments-refactored
May 7, 2024
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
34f17b7
New modularity language import
odersky 31c9e8a
Allow vals in using clauses of givens
odersky 84655ca
A relaxation concerning exported type aliases
odersky 4894414
Allow class parents to be refined types.
odersky 5189e68
Introduce tracked class parameters
odersky ea3c688
Make explicit arguments for context bounds an error from 3.5
odersky f96a769
Drop restriction against typedefs at level * only
odersky ef71dcb
Allow types in given definitions to be infix types
odersky 2f58cbc
New syntax for given defs
odersky 598c6ad
Allow multiple context bounds in `{...}`
odersky a61d2bc
Allow renamings `as N` in context bounds
odersky b48fb99
Implement `deferred` givens
odersky 600293e
FIX: Allow ContextBoundParamNames to be unmangled.
odersky 48000ee
Change rules for given prioritization
odersky d923cac
Allow context bounds in type declarations
odersky 4d62692
Make some context bound evidence params tracked
odersky 11d7fa3
FIX: Fix typing of RefinedTypes with watching parents
odersky 96fbf29
Also reduce term projections
odersky ce09ef3
Implement context bound companions
odersky c6388c2
Allow contecxt bounds with abstract `Self` types
odersky f444b46
Add a doc page
odersky f713652
Fix Singleton
odersky 1f2e735
Tweaks to doc pages
odersky 94bc6fe
Add Precise type class for precise type inference
odersky 887fbc4
Fix rebase breakage
odersky 1e72282
Delay roll-out of new prioritization scheme:
odersky 9d0ca20
Fix rebase breakage again
odersky fd072dc
Make best effort compilation work with context bound companions
odersky 21f5e67
Tweaks after review
odersky d3e6a95
Fix rebase breakage
odersky b2f0791
Make Singleton an erased class only under modularity import
odersky 4f28d8a
Address review comments
odersky 0dddcb7
Adress review comments with changed docs and new tests
odersky 62e0244
Update warn check files
odersky 9959f28
Update InlayHints
odersky 3c78ada
Fix typo
odersky 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
The docs have not been updated with the renaming (see L633 and L636).
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.
I would also expect the text describing the semantics of the widening. Reading ahead there seems to be some new interaction between
widen
andbound
when the latter is a singleton.