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

[patterns] Fix a handful of small-ish patterns issues: #2779

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

munificent
Copy link
Member

  • Allow object pattern fields to tear off methods.

  • No exception for non-exhaustive switch statements that don't need
    to be exhaustive.

  • Promoted types and bounds can be always-exhaustive.

  • Fix incorrect static error with cast patterns in assignments.

  • Clarify that patterns are not const contexts.

Fix #2561.
Fix #2698.
Fix #2765.
Fix #2758.

-   Allow object pattern fields to tear off methods.

-   No exception for non-exhaustive switch statements that don't need
    to be exhaustive.

-   Promoted types and bounds can be always-exhaustive.

-   Fix incorrect static error with cast patterns in assignments.

-   Clarify that patterns are not const contexts.

Fix #2561.
Fix #2698.
Fix #2765.
Fix #2758.
@munificent munificent requested a review from lrhn January 19, 2023 02:18
Copy link
Member

@lrhn lrhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM!

@munificent munificent merged commit f71713e into master Jan 19, 2023
@munificent munificent deleted the patterns-small-issues branch January 19, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants