Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Nov 4, 2025

Don't prematurely force info of currently defined fields with inferred types when computing captureSetImpliedByFields.

Fixes #24335

@odersky odersky changed the title Don't prematurely force info of fields with inferrerred types Don't prematurely force info of fields with inferred types Nov 4, 2025
@odersky odersky force-pushed the fix-24335 branch 2 times, most recently from 8e5a171 to f6875d2 Compare November 5, 2025 09:56
@odersky odersky requested a review from bracevac November 6, 2025 18:12
…d types

Don't prematurely force info of currently defined fields with inferred types when
computing captureSetImpliedByFields.

Fixes scala#24335
We now need to also check that fields with inferred types would not contribute
a fresh capability to the implied capture set of the class.
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.

Use is not properly recorded

2 participants