Skip to content

Propagate expected types when rechecking match return expressions - #25580

Merged
odersky merged 2 commits into
scala:mainfrom
dotty-staging:fix-match-cc
Mar 24, 2026
Merged

Propagate expected types when rechecking match return expressions#25580
odersky merged 2 commits into
scala:mainfrom
dotty-staging:fix-match-cc

Conversation

@Linyxus

@Linyxus Linyxus commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #25320.

The change is pretty much described by the title.

How much have you relied on LLM-based tools in this contribution?

Codex is used extensively to investigate the issue and produce the fix.

How was the solution tested?

Compilation tests.

Additional notes

@Linyxus
Linyxus requested a review from odersky March 20, 2026 16:18
@Linyxus

Linyxus commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

ping for review @odersky

@odersky odersky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LTGM!

@odersky
odersky merged commit ce05914 into scala:main Mar 24, 2026
64 checks passed
@odersky
odersky deleted the fix-match-cc branch March 24, 2026 16:40
@WojciechMazur WojciechMazur added this to the 3.8.4 milestone Mar 31, 2026
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.

Capture leak by pattern matching on GADT

4 participants