-
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
Streamline tryNormalize
with underlyingMatchType
#20268
Merged
EugeneFlesselle
merged 10 commits into
scala:main
from
dotty-staging:match-types-tryNormalize
Jul 5, 2024
Merged
Streamline tryNormalize
with underlyingMatchType
#20268
EugeneFlesselle
merged 10 commits into
scala:main
from
dotty-staging:match-types-tryNormalize
Jul 5, 2024
Commits on Jun 28, 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 32752e2 - Browse repository at this point
Copy the full SHA 32752e2View 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 ac98023 - Browse repository at this point
Copy the full SHA ac98023View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68ca883 - Browse repository at this point
Copy the full SHA 68ca883View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6cadec - Browse repository at this point
Copy the full SHA a6cadecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fbba66 - Browse repository at this point
Copy the full SHA 4fbba66View 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 309b1cf - Browse repository at this point
Copy the full SHA 309b1cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b87d7f - Browse repository at this point
Copy the full SHA 0b87d7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9df3942 - Browse repository at this point
Copy the full SHA 9df3942View 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 9465d65 - Browse repository at this point
Copy the full SHA 9465d65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bfa819 - Browse repository at this point
Copy the full SHA 1bfa819View 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.