Skip to content
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

Re-use isConcrete checking in match types for NamedTuple.From #20947

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 2, 2024

  • Move isConcrete to a new object MatchTypes. We should also move other MatchType-related stuff from Types and TypeComparer here. Type and TypeComparer are already unconfortably big, and MatchTypes are a coherent topic where everything should work together.
  • Streamline isConcrete a bit.
  • Re-use isConcrete for a similar test in CheckRealizable.
  • Re-use isConcrete for evaluating NamedTuple.From

Fixes #20517

@odersky odersky changed the title Re-use isConcrete checking in match types for NamedTyple.From Re-use isConcrete checking in match types for NamedTuple.From Jul 2, 2024
odersky added 2 commits July 3, 2024 11:24
 - Move isConcrete to a new object `MatchTypes`. We should also move other MatchType-related
   stuff from Types and TypeComparer here. Type and TypeComparer are already unconfortably big,
   and MatchTypes are a coherent topic where everything should work together.
 - Streamline isConcrete a bit.
 - Re-use isConcrete for a similar test in CheckRealizable.
 - Re-use isConcrete for evaluating NamedTuple.From

Fixes scala#20517
@odersky odersky requested a review from smarter July 3, 2024 12:40
@odersky odersky requested a review from sjrd July 3, 2024 13:22
@smarter smarter merged commit 594306d into scala:main Jul 3, 2024
24 checks passed
@smarter smarter deleted the fix-20517 branch July 3, 2024 14:10
WojciechMazur added a commit that referenced this pull request Aug 27, 2024
…om" to 3.5.2 (#21447)

Backports #20947 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added this to the 3.5.2 milestone Oct 8, 2024
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.

NamedTuple.From reducing on abstract types and singleton types lead to soundness holes
4 participants