Skip to content

Make enum apply ascriptions inferred types - #25562

Merged
noti0na1 merged 1 commit into
scala:mainfrom
dotty-staging:fix-25497
Mar 18, 2026
Merged

Make enum apply ascriptions inferred types#25562
noti0na1 merged 1 commit into
scala:mainfrom
dotty-staging:fix-25497

Conversation

@odersky

@odersky odersky commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #25497

If they are treated as explicit types we might get junk from wrongly inferred capabilities in them.

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

not at all

@noti0na1 noti0na1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@noti0na1
noti0na1 enabled auto-merge March 18, 2026 17:21
Fixes scala#25497

If they are treated as explicit types we might get junk from wrongly inferred capabilities
in them.
@noti0na1
noti0na1 merged commit 2a84a92 into scala:main Mar 18, 2026
64 checks passed
@noti0na1
noti0na1 deleted the fix-25497 branch March 18, 2026 20:06
@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.

Regression for enums under usage under CC

4 participants