Skip to content

Backport "Refactor some tuple methods" to LTS #20776

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
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

WojciechMazur
Copy link
Contributor

Backports #19032 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

odersky and others added 3 commits June 25, 2024 00:05
 - Move from Definitions to TypeUtils
 - Unify TypeUtils.tupleElementTypes and Definitions.tupleTypes. They do
   the same thing.

I'd like to move more things out of Definitions and into TypeUtils and SymUtils.
Then I'd like to move these files to the core package, and make their operations
accessible automatically by having the companion objects of Types and Symbols inherit
from them. This is a first step into that direction.

[Cherry-picked 366f06a]
 = Move to core package. It was for historical reasons in transform because
   it was originally intended as a collection of type operations that were
   were useful in transform phases. But it's now used from everywhere.
 - Make a base class of Types, so that it does not need to be imported explicitly.

[Cherry-picked 6793291][modified]
 - Move to core package. It was for historical reasons in transform because
   it was originally intended as a collection of type operations that were
   were useful in transform phases. But it's now used from everywhere.
 - Make a base class of Types, so that it does not need to be imported explicitly.

Also: move isDerivedValueClass to SymUtils

[Cherry-picked 125321e][modified]
Base automatically changed from lts-18834 to lts-3.3 June 26, 2024 09:22
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-19356.

Reference

@WojciechMazur WojciechMazur merged commit 7481bfa into lts-3.3 Jun 26, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-19032 branch June 26, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants