-
Notifications
You must be signed in to change notification settings - Fork 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
Streamline tryNormalize
with underlyingMatchType
#20268
Open
EugeneFlesselle
wants to merge
9
commits into
scala:main
Choose a base branch
from
dotty-staging:match-types-tryNormalize
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Streamline tryNormalize
with underlyingMatchType
#20268
EugeneFlesselle
wants to merge
9
commits into
scala:main
from
dotty-staging:match-types-tryNormalize
Commits on Jun 11, 2024
-
Drop normalization of applied match alias arguments
Delay their normalization until it is needed. Avoids overflows from infinite match types that did not need to normalize. Also improves MatchTypeTraces as a side effect. It appears to have been added to avoid some separate issue, which seems to have been fixed. It is no longer needed since the previous fix with constant folding in disjointnessBoundary.
Configuration menu - View commit details
-
Copy full SHA for b7d3632 - Browse repository at this point
Copy the full SHA b7d3632View commit details -
Use cached underlyingMatchType when normalizing applied match aliases
Also fixes underlyingMatchType to not use the resType of HKTypeLambdas It should only be in `isMatch` used for `AliasingBounds`, not `isMatchAlias`
Configuration menu - View commit details
-
Copy full SHA for 6335454 - Browse repository at this point
Copy the full SHA 6335454View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04b23a0 - Browse repository at this point
Copy the full SHA 04b23a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d29816 - Browse repository at this point
Copy the full SHA 1d29816View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e5705c - Browse repository at this point
Copy the full SHA 4e5705cView commit details -
Drop
handleRecursive
fromMatchType#tryNormalize
There is already a `handleRecursive` in `reduced` Having the two makes error messages undeterministic, see scala#20269
Configuration menu - View commit details
-
Copy full SHA for dc302a0 - Browse repository at this point
Copy the full SHA dc302a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94e644 - Browse repository at this point
Copy the full SHA c94e644View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7aeb9c - Browse repository at this point
Copy the full SHA b7aeb9cView commit details -
tryNormalize used to not recursively check if tycon of applied type was normalizable, this may be necessary in the case of an applied type dealiasing to a type lambda. Fixes scala#20482
Configuration menu - View commit details
-
Copy full SHA for 05831d1 - Browse repository at this point
Copy the full SHA 05831d1View commit details
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.