-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add match types mixed with staged macro #5065
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
nicolasstucki
wants to merge
48
commits into
scala:master
from
dotty-staging:add-matchtype-mix-staged-macro
Closed
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
486074a
Add Tuple and *: types
odersky 386b5e1
Add version-specific source directories in the library
smarter 9bd796a
Fix Inlined abbreviation in erased code
odersky b0f7680
Remove rewrite annotation again
odersky c455db1
Add generative operations to tuples
odersky 7d474da
Fix TupleXXL equals
odersky 492f80e
More generative operations on Tuples: tail, apply, ++
odersky eac7792
Erase *: to tuple classes
odersky e353af9
Allow tuple literals to extend beyond 22
odersky 4ad41d4
Don't generate *: in generic Java signatures
odersky fadd4b7
Test pattern matching of tuples >= 23.
odersky d786b4c
Whitelist some Scala-2 classes as pure
odersky f09ba1b
Fix side-effect handling in reduceProjection
odersky 3bfea78
Support a limited form of rewrite unapplys
odersky 98971a6
Enforce implementation restrictions
odersky 93d5eac
Add MatchType as a type form
odersky e830298
Represent literals used as types with SingletonTypeTrees
odersky f5d96a5
Syntax, parsing, and type-checking of match types
odersky 0326709
Fix unpickling of match types
odersky 033e701
Blacklist match type fromtasty test
odersky fdcbc9f
Classify type defs with matches as RHS as abstract
odersky 04124a9
Implement subtyping for match types
odersky d17c292
Cache match reduce results
odersky 5bdee62
Cache results of attempts to reduce match types
odersky 1fd37a3
Use a special type for match aliases
odersky e881350
Applications of erased functions are always pure
odersky 2710e2b
Allow user-defined error diagnostics when rewriting
odersky a1efa25
Fix two issues when comparing match types
odersky dc7f447
MatchType reorg
odersky a19e2cc
Typelevel natural numbers
odersky a345e9e
Reduce matches on creation
odersky d34e3fa
Handle MatchTypeTrees in ExtractAPI
odersky 825db1b
Refine matchtype reduction caching
odersky da4b5e8
Coarser variance checking for match types
odersky fbb173f
Add constValue function
odersky e1a2e61
Add NonEmptyTuple abstract class
odersky 1a31183
More precise derivesFrom for MatchTypes
odersky 0f5e82b
Base Tuple computations on types
odersky 8daf613
Make MatchTypes value types
odersky 97e0f3b
Fix inlining of parameters of singleton type
odersky 5284fe8
Test tuples2 needs to run with -Yno-deep-subtypes
odersky 86e17fb
Add constValueOpt method
odersky 5c2a105
Fix unpickling of match type aliases
odersky 2e9cd7d
Survive bottom values in pattern matches
odersky d34c45e
Report rewrite errors at outermost rewrite call
odersky 39b86e3
Harden Tuple operations against wrong inputs
odersky dd0d0eb
Reduce sizes of tuples of tuples2.scala
odersky e583c9c
Experiment with type matches and staged macros
nicolasstucki 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 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.
this quick fix may make some tests fail